summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-11-19 20:42:36 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-11-19 20:42:36 +0000
commit9bec3628a2ce7870744a5ec828cedf144cd0dea1 (patch)
treedb3929344497aa529ba7daed0a85db17bf893bbd /src
parent60dbc68bdf833b5928bab905c2d2d002981032db (diff)
downloadirssi-9bec3628a2ce7870744a5ec828cedf144cd0dea1.zip
/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
Diffstat (limited to 'src')
-rw-r--r--src/fe-common/core/fe-messages.c8
1 files changed, 7 insertions, 1 deletions
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);