From e98a83b53833f3448d2a8aeb67585fbafb9ec900 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 19 Nov 2001 20:47:36 +0000 Subject: [PATCH] Actually :) The /SET show_own_nick_change_once is still there, but it's OFF by default now, and printing the own nick changes just don't trigger window activity. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2099 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/fe-messages.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/fe-common/core/fe-messages.c b/src/fe-common/core/fe-messages.c index 81035f6c..2c720dc4 100644 --- a/src/fe-common/core/fe-messages.c +++ b/src/fe-common/core/fe-messages.c @@ -409,11 +409,16 @@ static void print_nick_change_channel(SERVER_REC *server, const char *channel, const char *address, int ownnick) { + int level; + if (ignore_check(server, oldnick, address, channel, newnick, MSGLEVEL_NICKS)) return; - printformat(server, channel, MSGLEVEL_NICKS, + level = MSGLEVEL_NICKS; + if (ownnick) level |= MSGLEVEL_NO_ACT; + + printformat(server, channel, level, ownnick ? TXT_YOUR_NICK_CHANGED : TXT_NICK_CHANGED, oldnick, newnick, channel); } @@ -629,7 +634,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); + settings_add_bool("lookandfeel", "show_own_nickchange_once", FALSE); signal_add_last("message public", (SIGNAL_FUNC) sig_message_public); signal_add_last("message private", (SIGNAL_FUNC) sig_message_private);