mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
/SET hide_server_tags
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1467 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
4c613a44b7
commit
4c42e7d894
@ -146,6 +146,7 @@ void fe_common_core_init(void)
|
||||
settings_add_bool("lookandfeel", "beep_when_away", TRUE);
|
||||
|
||||
settings_add_bool("lookandfeel", "hide_text_style", FALSE);
|
||||
settings_add_bool("lookandfeel", "hide_server_tags", FALSE);
|
||||
|
||||
settings_add_bool("lookandfeel", "use_status_window", TRUE);
|
||||
settings_add_bool("lookandfeel", "use_msgs_window", FALSE);
|
||||
|
@ -36,7 +36,7 @@ static const char *format_fores = "kbgcrmyw";
|
||||
static const char *format_boldfores = "KBGCRMYW";
|
||||
|
||||
static int signal_gui_print_text;
|
||||
static int hide_text_style;
|
||||
static int hide_text_style, hide_server_tags;
|
||||
|
||||
static int timestamps, msgs_timestamps;
|
||||
static int timestamp_timeout;
|
||||
@ -530,8 +530,9 @@ static char *get_server_tag(THEME_REC *theme, TEXT_DEST_REC *dest)
|
||||
|
||||
server = dest->server;
|
||||
|
||||
if (server == NULL || (dest->window->active != NULL &&
|
||||
dest->window->active->server == server))
|
||||
if (server == NULL || hide_server_tags ||
|
||||
(dest->window->active != NULL &&
|
||||
dest->window->active->server == server))
|
||||
return NULL;
|
||||
|
||||
if (servers != NULL) {
|
||||
@ -919,6 +920,7 @@ void format_send_to_gui(TEXT_DEST_REC *dest, const char *text)
|
||||
|
||||
static void read_settings(void)
|
||||
{
|
||||
hide_server_tags = settings_get_bool("hide_server_tags");
|
||||
hide_text_style = settings_get_bool("hide_text_style");
|
||||
timestamps = settings_get_bool("timestamps");
|
||||
timestamp_timeout = settings_get_int("timestamp_timeout");
|
||||
|
Loading…
Reference in New Issue
Block a user