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.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.c')
-rw-r--r-- | src/plugins/trigger/trigger.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/plugins/trigger/trigger.c b/src/plugins/trigger/trigger.c index a0392afdf..2f477a249 100644 --- a/src/plugins/trigger/trigger.c +++ b/src/plugins/trigger/trigger.c @@ -273,10 +273,18 @@ trigger_hook (struct t_trigger *trigger) trigger_unhook (trigger); - argv = weechat_string_split (weechat_config_string (trigger->options[TRIGGER_OPTION_ARGUMENTS]), - ";", -1, 0, &argc); - argv_eol = weechat_string_split (weechat_config_string (trigger->options[TRIGGER_OPTION_ARGUMENTS]), - ";", 1, 0, NULL); + argv = weechat_string_split ( + weechat_config_string (trigger->options[TRIGGER_OPTION_ARGUMENTS]), + ";", + 0, + 0, + &argc); + argv_eol = weechat_string_split ( + weechat_config_string (trigger->options[TRIGGER_OPTION_ARGUMENTS]), + ";", + WEECHAT_STRING_SPLIT_KEEP_EOL, + 0, + NULL); switch (weechat_config_integer (trigger->options[TRIGGER_OPTION_HOOK])) { |