summaryrefslogtreecommitdiff
path: root/src/plugins/script/script-repo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/script/script-repo.c')
-rw-r--r--src/plugins/script/script-repo.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/plugins/script/script-repo.c b/src/plugins/script/script-repo.c
index 272eef28e..833cd4f68 100644
--- a/src/plugins/script/script-repo.c
+++ b/src/plugins/script/script-repo.c
@@ -934,9 +934,16 @@ script_repo_match_filter (struct t_script_repo *script)
if (!script_repo_filter || strcmp (script_repo_filter, "*") == 0)
return 1;
- words = weechat_string_split (script_repo_filter, " ", 0, 0, &num_words);
- tags = weechat_string_split ((script->tags) ? script->tags : "", ",", 0, 0,
- &num_tags);
+ words = weechat_string_split (script_repo_filter, " ",
+ WEECHAT_STRING_SPLIT_STRIP_LEFT
+ | WEECHAT_STRING_SPLIT_STRIP_RIGHT
+ | WEECHAT_STRING_SPLIT_COLLAPSE_SEPS,
+ 0, &num_words);
+ tags = weechat_string_split ((script->tags) ? script->tags : "", ",",
+ WEECHAT_STRING_SPLIT_STRIP_LEFT
+ | WEECHAT_STRING_SPLIT_STRIP_RIGHT
+ | WEECHAT_STRING_SPLIT_COLLAPSE_SEPS,
+ 0, &num_tags);
if (words)
{
for (i = 0; i < num_words; i++)