1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Check for unknown commands and show message in console

fixes #390
This commit is contained in:
James Booth 2014-08-04 22:21:53 +01:00
parent cd9b1449b5
commit e38ebe8a85

View File

@ -1397,6 +1397,13 @@ cmd_execute_default(const char * const inp)
jabber_conn_status_t status = jabber_get_connection_status();
char *recipient = ui_current_recipient();
// handle unknown commands
if ((inp[0] == '/') && (!g_str_has_prefix(inp, "/me "))) {
cons_show("Unknown command: %s", inp);
cons_alert();
return TRUE;
}
switch (win_type)
{
case WIN_MUC: