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

irc: display message 354 (WHOX) received with missing parameters (closes #1212)

This commit is contained in:
Sébastien Helleu
2018-06-23 22:17:18 +02:00
parent 24d2413fdc
commit a5962cf7f5
2 changed files with 19 additions and 1 deletions
+18 -1
View File
@@ -4766,9 +4766,26 @@ IRC_PROTOCOL_CALLBACK(354)
IRC_PROTOCOL_MIN_ARGS(4);
/* silently ignore 354 messages we don't parse (missing infos) */
/*
* if there are less than 11 arguments, we are unable to parse the message,
* some infos are missing but we don't know which ones; in this case we
* just display the message as-is
*/
if (argc < 11)
{
if (argc > 3)
{
weechat_printf_date_tags (
irc_msgbuffer_get_target_buffer (
server, NULL, command, "who", NULL),
date,
irc_protocol_tags (command, "irc_numeric", NULL, NULL),
"%s%s",
weechat_prefix ("network"),
argv_eol[3]);
}
return WEECHAT_RC_OK;
}
pos_attr = argv[8];
pos_hopcount = argv[9];