diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2019-03-10 13:16:59 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2019-03-10 18:29:16 +0100 |
commit | 2b70d71aa1c891f2f251aa775cf239e5611576d5 (patch) | |
tree | 33b7daaa910582482c420e4e1e06a2d8851572e9 /src/plugins/trigger/trigger-buffer.c | |
parent | 8aa5f5375e2a16d538fdf96babcd52a2f8f7801c (diff) | |
download | weechat-2b70d71aa1c891f2f251aa775cf239e5611576d5.zip |
core: replace argument "keep_eol" by "flags" in function string_split (closes #1322)
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); } /* |