diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2020-02-01 23:02:55 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-02-01 23:02:55 +0100 |
commit | 4e2718d234eb14f8b262b006912ae0dc5f067f09 (patch) | |
tree | 395801e8968406bb2cb212427b0ba4464e3975db /src/plugins/irc | |
parent | 95e34c71d670f6583ba1d66adee1f0ce69356613 (diff) | |
download | weechat-4e2718d234eb14f8b262b006912ae0dc5f067f09.zip |
irc: add nick changes in the hotlist (except self nick change)
Diffstat (limited to 'src/plugins/irc')
-rw-r--r-- | src/plugins/irc/irc-protocol.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index ccc9ca35f..05433d34e 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -1640,9 +1640,6 @@ IRC_PROTOCOL_CALLBACK(nick) { ptr_nick_found = ptr_nick; - /* temporary disable hotlist */ - weechat_buffer_set (NULL, "hotlist", "-"); - /* set host in nick if needed */ irc_nick_set_host (ptr_nick, address); @@ -1651,6 +1648,9 @@ IRC_PROTOCOL_CALLBACK(nick) irc_nick_change (server, ptr_channel, ptr_nick, new_nick); if (local_nick) { + /* temporary disable hotlist */ + weechat_buffer_set (NULL, "hotlist", "-"); + snprintf (str_tags, sizeof (str_tags), "irc_nick1_%s,irc_nick2_%s", nick, @@ -1667,6 +1667,9 @@ IRC_PROTOCOL_CALLBACK(nick) IRC_COLOR_CHAT_NICK_SELF, new_nick, IRC_COLOR_RESET); + + /* enable hotlist */ + weechat_buffer_set (NULL, "hotlist", "+"); } else { @@ -1712,9 +1715,6 @@ IRC_PROTOCOL_CALLBACK(nick) if (old_color) free (old_color); - - /* enable hotlist */ - weechat_buffer_set (NULL, "hotlist", "+"); } break; } |