summaryrefslogtreecommitdiff
path: root/src/fe-common
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-11-19 20:47:36 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-11-19 20:47:36 +0000
commite98a83b53833f3448d2a8aeb67585fbafb9ec900 (patch)
tree43ab4327a0fa934ba436a33d871695ebc2cc085b /src/fe-common
parent9bec3628a2ce7870744a5ec828cedf144cd0dea1 (diff)
downloadirssi-e98a83b53833f3448d2a8aeb67585fbafb9ec900.zip
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
Diffstat (limited to 'src/fe-common')
-rw-r--r--src/fe-common/core/fe-messages.c9
1 files 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);