diff --git a/src/command/command.c b/src/command/command.c index 5ceb004a..f5e84da9 100644 --- a/src/command/command.c +++ b/src/command/command.c @@ -1036,7 +1036,7 @@ cmd_execute_default(const char * const inp) free(recipient); } } else { - cons_bad_command(inp); + cons_show("Unknown command: %s", inp); } return TRUE; diff --git a/src/ui/console.c b/src/ui/console.c index 4931a391..cdd8641d 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -140,18 +140,6 @@ cons_bad_show(const char * const msg, ...) } } -void -cons_bad_command(const char * const cmd) -{ - window_print_time(console, '-'); - wprintw(console->win, "Unknown command: %s\n", cmd); - - dirty = TRUE; - if (!win_current_is_console()) { - status_bar_new(0); - } -} - void cons_show_typing(const char * const short_from) { diff --git a/src/ui/ui.h b/src/ui/ui.h index 9ead3848..8a246432 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -143,7 +143,6 @@ void cons_show_log_prefs(void); void cons_show_presence_prefs(void); void cons_show_connection_prefs(void); void cons_show_account(ProfAccount *account); -void cons_bad_command(const char * const cmd); void cons_debug(const char * const msg, ...); void cons_show_time(void); void cons_show_word(const char * const word);