mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 19:36:20 +00:00
Moved cons_bad_command() to console module
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user