From 55df7805c24c40f6842f2f60ccf43329ce176275 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Wed, 13 Oct 2021 18:45:36 +0200 Subject: [PATCH] irc: display a single error message when parsing of a command failed --- src/plugins/irc/irc-protocol.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index 7dd044026..cde702fb7 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -7129,12 +7129,9 @@ irc_protocol_recv_command (struct t_irc_server *server, { weechat_printf (server->buffer, _("%s%s: failed to parse command \"%s\" (please " - "report to developers):"), + "report to developers): \"%s\""), weechat_prefix ("error"), IRC_PLUGIN_NAME, - msg_command); - weechat_printf (server->buffer, - "%s%s", - weechat_prefix ("error"), irc_message); + msg_command, irc_message); } /* send signal with received command (if message is not ignored) */