summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorMax Teufel <max@teufelsnetz.com>2015-05-04 17:21:20 +0200
committerMax Teufel <max@teufelsnetz.com>2015-05-04 18:01:36 +0200
commit84e55e9face6fffdf0e01dfd62f3fec92b1ecbbc (patch)
treeeb4b422c0bc7b270e4de386e9ce85557e6a25d35 /src/plugins
parent241a999bd6979c871989595008903629e2dc57d0 (diff)
downloadweechat-84e55e9face6fffdf0e01dfd62f3fec92b1ecbbc.zip
irc: avoid warnings for unsupported WHOX messages
Fixes #376. This avoids warnings for WHOX messages that we do not parse/ understand yet. Previously, IRC_PROTOCOL_MIN_ARGS was 5 where it should have been 4 (which avoids warnings for WHOX commands only requesting one WHOX type). Changing the behavior to support all different WHOX types seems like a bad idea to me, as it's quite hard to figure out which information was requested with the WHOX command.
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/irc/irc-protocol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c
index a3bd8055e..13e52e9e2 100644
--- a/src/plugins/irc/irc-protocol.c
+++ b/src/plugins/irc/irc-protocol.c
@@ -4272,9 +4272,9 @@ IRC_PROTOCOL_CALLBACK(354)
struct t_irc_channel *ptr_channel;
struct t_irc_nick *ptr_nick;
- IRC_PROTOCOL_MIN_ARGS(5);
+ IRC_PROTOCOL_MIN_ARGS(4);
- /* silently ignore malformed 354 message (missing infos) */
+ /* silently ignore 354 messages we don't parse (missing infos) */
if (argc < 11)
return WEECHAT_RC_OK;