summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-05-10 19:54:48 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-05-10 19:54:48 +0000
commit4c42e7d8943a1198380ad801726c005e06a097d4 (patch)
treedcd2151f9b7c6bb5aae90320a5c6fbdcf68acab2 /src
parent4c613a44b751c070dcce3ac2d242fc5a2b4c121f (diff)
downloadirssi-4c42e7d8943a1198380ad801726c005e06a097d4.zip
/SET hide_server_tags
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1467 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r--src/fe-common/core/fe-common-core.c1
-rw-r--r--src/fe-common/core/formats.c8
2 files changed, 6 insertions, 3 deletions
diff --git a/src/fe-common/core/fe-common-core.c b/src/fe-common/core/fe-common-core.c
index 1bfaf48e..dba05b06 100644
--- a/src/fe-common/core/fe-common-core.c
+++ b/src/fe-common/core/fe-common-core.c
@@ -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);
diff --git a/src/fe-common/core/formats.c b/src/fe-common/core/formats.c
index ae8e7630..b933c068 100644
--- a/src/fe-common/core/formats.c
+++ b/src/fe-common/core/formats.c
@@ -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");