diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-10-25 19:13:43 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-10-25 19:13:43 +0200 |
commit | b712ed09d7237762b71434a74e067f3522683fab (patch) | |
tree | e477b6ad3b1bc55b953d577017b2bc805a91d157 /src/gui/gui-completion.c | |
parent | 707034442ab75c8c426f9c8b4906d10ad7312b4d (diff) | |
download | weechat-b712ed09d7237762b71434a74e067f3522683fab.zip |
Add smart join/part/quit message filter in IRC plugin, add names for filters
Diffstat (limited to 'src/gui/gui-completion.c')
-rw-r--r-- | src/gui/gui-completion.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/gui/gui-completion.c b/src/gui/gui-completion.c index 5dfb20a3c..f5dcf2bf5 100644 --- a/src/gui/gui-completion.c +++ b/src/gui/gui-completion.c @@ -43,6 +43,7 @@ #include "gui-bar.h" #include "gui-buffer.h" #include "gui-color.h" +#include "gui-filter.h" #include "gui-keyboard.h" #include "gui-nicklist.h" @@ -464,6 +465,23 @@ gui_completion_list_add_filename (struct t_gui_completion *completion) } /* + * gui_completion_list_add_filters: add filters to completion list + */ + +void +gui_completion_list_add_filters (struct t_gui_completion *completion) +{ + struct t_gui_filter *ptr_filter; + + for (ptr_filter = gui_filters; ptr_filter; + ptr_filter = ptr_filter->next_filter) + { + gui_completion_list_add (completion, ptr_filter->name, + 0, WEECHAT_LIST_POS_SORT); + } +} + +/* * gui_completion_list_add_command_hooks: add command hooks to completion list */ @@ -931,6 +949,9 @@ gui_completion_build_list_template (struct t_gui_completion *completion, case 'f': /* filename */ gui_completion_list_add_filename (completion); break; + case 'F': /* filters */ + gui_completion_list_add_filters (completion); + break; case 'h': /* command hooks */ gui_completion_list_add_command_hooks (completion); break; |