mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 21:06:20 +00:00
Added tests for /otr warn
This commit is contained in:
@@ -2595,8 +2595,7 @@ cmd_otr(gchar **args, struct cmd_help_t help)
|
||||
} else if (strcmp(args[0], "warn") == 0) {
|
||||
gboolean result = _cmd_set_boolean_preference(args[1], help,
|
||||
"OTR warning message", PREF_OTR_WARN);
|
||||
// update the current window
|
||||
ui_switch_win(wins_get_current_num());
|
||||
ui_current_refresh();
|
||||
return result;
|
||||
} else if (strcmp(args[0], "libver") == 0) {
|
||||
char *version = otr_libotr_version();
|
||||
|
||||
@@ -552,6 +552,12 @@ _ui_switch_win(const int i)
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
_ui_current_refresh(void)
|
||||
{
|
||||
ui_switch_win(wins_get_current_num());
|
||||
}
|
||||
|
||||
static void
|
||||
_ui_next_win(void)
|
||||
{
|
||||
@@ -1756,4 +1762,5 @@ ui_init_module(void)
|
||||
ui_handle_recipient_not_found = _ui_handle_recipient_not_found;
|
||||
ui_handle_recipient_error = _ui_handle_recipient_error;
|
||||
ui_handle_error = _ui_handle_error;
|
||||
ui_current_refresh = _ui_current_refresh;
|
||||
}
|
||||
|
||||
@@ -86,6 +86,7 @@ void (*ui_current_print_line)(const char * const msg, ...);
|
||||
void (*ui_current_print_formatted_line)(const char show_chat, int attrs, const char * const msg, ...);
|
||||
void (*ui_current_error_line)(const char * const msg);
|
||||
void (*ui_current_page_off)(void);
|
||||
void (*ui_current_refresh)(void);
|
||||
|
||||
win_type_t (*ui_win_type)(int index);
|
||||
char * (*ui_recipient)(int index);
|
||||
|
||||
Reference in New Issue
Block a user