From 9bec3628a2ce7870744a5ec828cedf144cd0dea1 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 19 Nov 2001 20:42:36 +0000 Subject: [PATCH] /SET show_own_nickchange_once ON - show own nick changes only in active window instead of every channel you've joined. This is the default now. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2098 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/fe-messages.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/fe-common/core/fe-messages.c b/src/fe-common/core/fe-messages.c index 5f342b46..81035f6c 100644 --- a/src/fe-common/core/fe-messages.c +++ b/src/fe-common/core/fe-messages.c @@ -462,7 +462,12 @@ static void sig_message_nick(SERVER_REC *server, const char *newnick, static void sig_message_own_nick(SERVER_REC *server, const char *newnick, const char *oldnick, const char *address) { - print_nick_change(server, newnick, oldnick, address, TRUE); + if (!settings_get_bool("show_own_nickchange_once")) + print_nick_change(server, newnick, oldnick, address, TRUE); + else { + printformat(server, NULL, MSGLEVEL_NICKS, + TXT_YOUR_NICK_CHANGED, oldnick, newnick, ""); + } } static void sig_message_invite(SERVER_REC *server, const char *channel, @@ -624,6 +629,7 @@ void fe_messages_init(void) settings_add_bool("lookandfeel", "show_nickmode_empty", TRUE); settings_add_bool("lookandfeel", "print_active_channel", FALSE); settings_add_bool("lookandfeel", "show_quit_once", FALSE); + settings_add_bool("lookandfeel", "show_own_nickchange_once", TRUE); signal_add_last("message public", (SIGNAL_FUNC) sig_message_public); signal_add_last("message private", (SIGNAL_FUNC) sig_message_private);