Skip to content

Commit

Permalink
Check for unknown commands and show message in console
Browse files Browse the repository at this point in the history
fixes #390
  • Loading branch information
boothj5 committed Aug 4, 2014
1 parent cd9b144 commit e38ebe8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/command/command.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e38ebe8

Please sign in to comment.