1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 06:46:38 +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
+3 -2
View File
@@ -1,7 +1,7 @@
WeeChat ChangeLog
=================
Sébastien Helleu <flashcode@flashtux.org>
v0.3.6-dev, 2011-09-29
v0.3.6-dev, 2011-09-30
Version 0.3.6 (under dev!)
@@ -105,7 +105,8 @@ Version 0.3.6 (under dev!)
followed by a digit (bug #33662)
* irc: add prefix "#" for all channels on join (if no prefix given)
* irc: switch to buffer on /join #channel if channel buffer already exists
* irc: set host for nick on each channel message (if not already set)
* irc: set host for nick on each channel message and nick change (if not already
set)
* irc: update host of nicks on manual /who
* irc: fix memory leak on plugin unload (free ignores)
* irc: fix memory leak in message parser (when called from other plugins like
+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);