mirror of
https://github.com/weechat/weechat.git
synced 2026-07-03 08:13:14 +02:00
irc: set host for nick on each nick change (if not already set)
This commit is contained in:
@@ -867,6 +867,10 @@ IRC_PROTOCOL_CALLBACK(nick)
|
||||
/* temporary disable hotlist */
|
||||
weechat_buffer_set (NULL, "hotlist", "-");
|
||||
|
||||
/* set host for nick if needed */
|
||||
if (ptr_nick && !ptr_nick->host)
|
||||
ptr_nick->host = strdup (address);
|
||||
|
||||
/* change nick and display message on all channels */
|
||||
old_color = strdup (ptr_nick->color);
|
||||
irc_nick_change (server, ptr_channel, ptr_nick, new_nick);
|
||||
|
||||
Reference in New Issue
Block a user