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/xfer | |
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/xfer')
-rw-r--r-- | src/plugins/xfer/xfer.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/plugins/xfer/xfer.c b/src/plugins/xfer/xfer.c index 12019731d..c186998fa 100644 --- a/src/plugins/xfer/xfer.c +++ b/src/plugins/xfer/xfer.c @@ -538,8 +538,14 @@ xfer_nick_auto_accepted (const char *server, const char *nick) rc = 0; - nicks = weechat_string_split (weechat_config_string (xfer_config_file_auto_accept_nicks), - ",", 0, 0, &num_nicks); + nicks = weechat_string_split ( + weechat_config_string (xfer_config_file_auto_accept_nicks), + ",", + WEECHAT_STRING_SPLIT_STRIP_LEFT + | WEECHAT_STRING_SPLIT_STRIP_RIGHT + | WEECHAT_STRING_SPLIT_COLLAPSE_SEPS, + 0, + &num_nicks); if (nicks) { for (i = 0; i < num_nicks; i++) |