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

Moved cons_bad_command() to console module

This commit is contained in:
James Booth 2013-04-21 01:42:57 +01:00
parent 3011dc63ae
commit 8a280b43ca
2 changed files with 12 additions and 13 deletions

View File

@ -140,6 +140,18 @@ cons_bad_show(const char * const msg, ...)
}
}
void
cons_bad_command(const char * const cmd)
{
window_show_time(console, '-');
wprintw(console->win, "Unknown command: %s\n", cmd);
dirty = TRUE;
if (!win_current_is_console()) {
status_bar_new(0);
}
}
void
cons_about(void)
{

View File

@ -1145,19 +1145,6 @@ win_room_show_status(const char * const contact)
}
}
void
cons_bad_command(const char * const cmd)
{
window_show_time(console, '-');
wprintw(console->win, "Unknown command: %s\n", cmd);
if (current_index == 0) {
dirty = TRUE;
} else {
status_bar_new(0);
}
}
void
notify_remind(void)
{