diff options
author | James Booth <boothj5@gmail.com> | 2015-11-24 01:34:06 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-11-24 01:34:06 +0000 |
commit | 00a735ece58421a6d4d3f7a161684b033aea828a (patch) | |
tree | 6028123a8675b2c84d394c9da0bd214cdc7a9134 /src/command/command.c | |
parent | a488d944d259f19330e23cca619bb7c9c4b65689 (diff) | |
download | profani-tty-00a735ece58421a6d4d3f7a161684b033aea828a.tar.gz |
Added autocompleters for notify trigger removal
Diffstat (limited to 'src/command/command.c')
-rw-r--r-- | src/command/command.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/command/command.c b/src/command/command.c index 3ef41ecb..225d8d01 100644 --- a/src/command/command.c +++ b/src/command/command.c @@ -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; |