1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-25 10:42:18 -05:00

Also print the command that wasn't recognized.

This commit is contained in:
Arnavion 2015-01-07 13:42:42 -08:00
parent 5ca87b3c8d
commit 99f74e8d94

View File

@ -4749,13 +4749,13 @@ handle_command (session *sess, char *cmd, int check_spch)
}
else
{
/* unknown command, just send it to the server and hope */
if (!sess->server->connected)
{
PrintText (sess, _("Unknown Command. Try /help\n"));
PrintTextf (sess, _("Unknown Command %s. Try /help\n"), word[1]);
}
else
{
/* unknown command, just send it to the server and hope */
sess->server->p_raw (sess->server, cmd);
}
}