From 9102e4f5524732a0bd51bd674fa1c9c3a20ae192 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Wed, 13 Oct 2021 18:45:14 +0200 Subject: [PATCH] irc: display a single error message when a command is not found --- 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 eac97057e..7dd044026 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -7076,12 +7076,9 @@ irc_protocol_recv_command (struct t_irc_server *server, else { weechat_printf (server->buffer, - _("%s%s: command \"%s\" not found:"), + _("%s%s: command \"%s\" not found: \"%s\""), weechat_prefix ("error"), IRC_PLUGIN_NAME, - msg_command); - weechat_printf (server->buffer, - "%s%s", - weechat_prefix ("error"), irc_message); + msg_command, irc_message); goto end; } }