diff options
Diffstat (limited to 'src/plugins/trigger/trigger-buffer.c')
-rw-r--r-- | src/plugins/trigger/trigger-buffer.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/plugins/trigger/trigger-buffer.c b/src/plugins/trigger/trigger-buffer.c index b14866d3d..523b0fa44 100644 --- a/src/plugins/trigger/trigger-buffer.c +++ b/src/plugins/trigger/trigger-buffer.c @@ -88,7 +88,14 @@ trigger_buffer_set_filter (const char *filter) } if (filter && filter[0]) - trigger_buffer_filters = weechat_string_split (filter, ",", 0, 0, NULL); + trigger_buffer_filters = weechat_string_split ( + filter, + ",", + WEECHAT_STRING_SPLIT_STRIP_LEFT + | WEECHAT_STRING_SPLIT_STRIP_RIGHT + | WEECHAT_STRING_SPLIT_COLLAPSE_SEPS, + 0, + NULL); } /* |