diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2010-03-29 22:50:56 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2010-03-29 22:50:56 +0200 |
commit | 5ff1742c86cc3ae66d6343dcc853c6691561e71e (patch) | |
tree | 0b802fde5ebbe6c9aa5786608af2a5cb54be21d2 | |
parent | 4981e7150afc222398c809f31c3ed1d0c700dc71 (diff) | |
download | weechat-5ff1742c86cc3ae66d6343dcc853c6691561e71e.zip |
Fix display of message 333 (channel topic) when there is no host but only nick
-rw-r--r-- | src/plugins/irc/irc-protocol.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index 929e65e0d..b795c5803 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -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; |