aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-09-29 20:01:11 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-09-29 20:01:11 +0200
commit613b53fa8b49dd2ff497c570c7518e16eacf3e3e (patch)
tree04bfad45624b18e35efd4bb7a50b9e992ba2eb6d
parentdoc: add note about new option weechat.look.color_basic_force_bold in NEWS file (diff)
downloadweechat-613b53fa8b49dd2ff497c570c7518e16eacf3e3e.tar.xz
weechat-613b53fa8b49dd2ff497c570c7518e16eacf3e3e.zip
irc: set host for nick on each channel message (if not already set)
-rw-r--r--ChangeLog3
-rw-r--r--src/plugins/irc/irc-protocol.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0b65a8bb9..6ee270370 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,7 @@
WeeChat ChangeLog
=================
Sébastien Helleu <flashcode@flashtux.org>
-v0.3.6-dev, 2011-09-27
+v0.3.6-dev, 2011-09-29
Version 0.3.6 (under dev!)
@@ -105,6 +105,7 @@ 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: 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
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c
index 8fc082e8d..301c1ac32 100644
--- a/src/plugins/irc/irc-protocol.c
+++ b/src/plugins/irc/irc-protocol.c
@@ -1389,6 +1389,9 @@ IRC_PROTOCOL_CALLBACK(privmsg)
/* other message */
ptr_nick = irc_nick_search (ptr_channel, nick);
+ if (ptr_nick && !ptr_nick->host)
+ ptr_nick->host = strdup (address);
+
weechat_printf_tags (ptr_channel->buffer,
irc_protocol_tags (command,
"notify_message",