summaryrefslogtreecommitdiff
path: root/src/plugins/irc
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-09-30 12:39:05 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-09-30 12:39:05 +0200
commit05d0435e1eb0e020a8192cba96da92d571127377 (patch)
tree883c9dcc96ae1e587dcff1280f433a9c2731ebfa /src/plugins/irc
parentca5c2947a4fd6bd044207c7e95829574a9ca7628 (diff)
downloadweechat-05d0435e1eb0e020a8192cba96da92d571127377.zip
irc: set host for nick on each nick change (if not already set)
Diffstat (limited to 'src/plugins/irc')
-rw-r--r--src/plugins/irc/irc-protocol.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c
index 301c1ac32..7a530a3e7 100644
--- a/src/plugins/irc/irc-protocol.c
+++ b/src/plugins/irc/irc-protocol.c
@@ -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);