1
0
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:
Sebastien Helleu
2011-09-30 12:39:05 +02:00
parent ca5c2947a4
commit 05d0435e1e
2 changed files with 7 additions and 2 deletions
+4
View File
@@ -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);