1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Removed cons_bad_command()

This commit is contained in:
James Booth 2013-04-21 02:42:27 +01:00
parent a3b861a711
commit f110a8fe3b
3 changed files with 1 additions and 14 deletions

View File

@ -1036,7 +1036,7 @@ cmd_execute_default(const char * const inp)
free(recipient); free(recipient);
} }
} else { } else {
cons_bad_command(inp); cons_show("Unknown command: %s", inp);
} }
return TRUE; return TRUE;

View File

@ -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 void
cons_show_typing(const char * const short_from) cons_show_typing(const char * const short_from)
{ {

View File

@ -143,7 +143,6 @@ void cons_show_log_prefs(void);
void cons_show_presence_prefs(void); void cons_show_presence_prefs(void);
void cons_show_connection_prefs(void); void cons_show_connection_prefs(void);
void cons_show_account(ProfAccount *account); void cons_show_account(ProfAccount *account);
void cons_bad_command(const char * const cmd);
void cons_debug(const char * const msg, ...); void cons_debug(const char * const msg, ...);
void cons_show_time(void); void cons_show_time(void);
void cons_show_word(const char * const word); void cons_show_word(const char * const word);