1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 07:16:37 +02:00

irc: do not display message with "(null)" for numeric command received if pos_args is NULL

This commit is contained in:
Sébastien Helleu
2021-10-13 18:42:47 +02:00
parent ed9104fbea
commit 57ad90c3c0
+10 -7
View File
@@ -3089,13 +3089,16 @@ IRC_PROTOCOL_CALLBACK(numeric)
pos_args = (argv_eol[2][0] == ':') ? argv_eol[2] + 1 : argv_eol[2];
}
weechat_printf_date_tags (
irc_msgbuffer_get_target_buffer (server, NULL, command, NULL, NULL),
date,
irc_protocol_tags (command, "irc_numeric", NULL, NULL),
"%s%s",
weechat_prefix ("network"),
pos_args);
if (pos_args)
{
weechat_printf_date_tags (
irc_msgbuffer_get_target_buffer (server, NULL, command, NULL, NULL),
date,
irc_protocol_tags (command, "irc_numeric", NULL, NULL),
"%s%s",
weechat_prefix ("network"),
pos_args);
}
return WEECHAT_RC_OK;
}