irc: add nick changes in the hotlist (except self nick change)
This commit is contained in:
parent
95e34c71d6
commit
4e2718d234
@ -30,6 +30,7 @@ Bug fixes::
|
||||
|
||||
* core: flush stdout/stderr before forking in hook_process function (issue #1441)
|
||||
* core: fix evaluation of condition with nested "if" (issue #1434)
|
||||
* irc: add nick changes in the hotlist (except self nick change)
|
||||
* irc: case-insensitive comparison on incoming CTCP command, force upper case on CTCP replies (issue #1439)
|
||||
* irc: fix memory leak when the channel topic is changed
|
||||
* logger: fix crash when logging is disabled on a buffer and the log file was deleted in the meanwhile, when option logger.file.info_lines is on (issue #1444)
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user