1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 08:43:13 +02:00

Fix display of message 333 (channel topic) when there is no host but only nick

This commit is contained in:
Sebastien Helleu
2010-03-29 22:50:56 +02:00
parent 4981e7150a
commit 5ff1742c86
+2
View File
@@ -2761,6 +2761,8 @@ IRC_PROTOCOL_CALLBACK(333)
topic_nick = irc_protocol_get_nick_from_host (argv[4]);
topic_address = irc_protocol_get_address_from_host (argv[4]);
if (topic_nick && topic_address && strcmp (topic_nick, topic_address) == 0)
topic_address = NULL;
ptr_channel = irc_channel_search (server, argv[3]);
ptr_nick = (ptr_channel) ? irc_nick_search (ptr_channel, topic_nick) : NULL;