Added autocompleters for notify trigger removal

This commit is contained in:
James Booth
2015-11-24 01:34:06 +00:00
parent a488d944d2
commit 00a735ece5
3 changed files with 81 additions and 0 deletions

View File

@@ -2636,6 +2636,8 @@ cmd_reset_autocomplete(ProfWin *window)
}
bookmark_autocomplete_reset();
prefs_reset_message_trigger_ac();
prefs_reset_room_trigger_ac();
}
gboolean
@@ -3150,6 +3152,16 @@ _notify_autocomplete(ProfWin *window, const char *const input)
int i = 0;
char *result = NULL;
result = autocomplete_param_with_func(input, "/notify message trigger remove", prefs_autocomplete_message_trigger);
if (result) {
return result;
}
result = autocomplete_param_with_func(input, "/notify room trigger remove", prefs_autocomplete_room_trigger);
if (result) {
return result;
}
result = autocomplete_param_with_func(input, "/notify room current", prefs_autocomplete_boolean_choice);
if (result) {
return result;