diff options
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; } |