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

irc: display a single error message when a command is not found

This commit is contained in:
Sébastien Helleu
2021-10-13 18:45:14 +02:00
parent 57ad90c3c0
commit 9102e4f552
+2 -5
View File
@@ -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;
}
}