1
0
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:
Timo Sirainen 2001-05-10 19:54:48 +00:00 committed by cras
parent 4c613a44b7
commit 4c42e7d894
2 changed files with 6 additions and 3 deletions

View File

@ -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);

View File

@ -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");