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:
parent
3011dc63ae
commit
8a280b43ca
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user