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

Added ui_unknown_command

This commit is contained in:
James Booth 2014-04-09 22:13:01 +01:00
parent b9aac28ccc
commit 714ee24863
3 changed files with 9 additions and 1 deletions

View File

@ -1367,7 +1367,7 @@ cmd_execute_default(const char * const inp)
break;
case WIN_CONSOLE:
cons_show("Unknown command: %s", inp);
ui_unknown_command(inp);
break;
case WIN_DUCK:

View File

@ -538,6 +538,12 @@ _ui_invalid_command_usage(const char * const usage, void (**setting_func)(void))
}
}
static void
_ui_unknown_command(const char * const input)
{
cons_show("Unknown command: %s", input);
}
static void
_ui_disconnected(void)
{
@ -1915,4 +1921,5 @@ ui_init_module(void)
ui_input_nonblocking = _ui_input_nonblocking;
ui_replace_input = _ui_replace_input;
ui_invalid_command_usage = _ui_invalid_command_usage;
ui_unknown_command = _ui_unknown_command;
}

View File

@ -160,6 +160,7 @@ void (*ui_input_nonblocking)(void);
void (*ui_replace_input)(char *input, const char * const new_input, int *size);
void (*ui_invalid_command_usage)(const char * const usage, void (**setting_func)(void));
void (*ui_unknown_command)(const char * const input);
// console window actions
void (*cons_show)(const char * const msg, ...);