diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2019-06-15 20:47:14 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2019-06-15 20:47:14 +0200 |
commit | 917815635415b523eaf58ed4c65757247d5cca99 (patch) | |
tree | abac3f1894ed07cbf2caed70cc285bde87b3263c /src/plugins/relay/irc/relay-irc.c | |
parent | 866a29c7e63bbda24e04fc36b34bbd798a8c98db (diff) | |
download | weechat-917815635415b523eaf58ed4c65757247d5cca99.zip |
api: add argument "strip_items" in function string_split
Diffstat (limited to 'src/plugins/relay/irc/relay-irc.c')
-rw-r--r-- | src/plugins/relay/irc/relay-irc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/relay/irc/relay-irc.c b/src/plugins/relay/irc/relay-irc.c index e54e52403..632fbabb6 100644 --- a/src/plugins/relay/irc/relay-irc.c +++ b/src/plugins/relay/irc/relay-irc.c @@ -337,7 +337,7 @@ relay_irc_tag_relay_client_id (const char *tags) if (tags && tags[0]) { - argv = weechat_string_split (tags, ",", + argv = weechat_string_split (tags, ",", NULL, WEECHAT_STRING_SPLIT_STRIP_LEFT | WEECHAT_STRING_SPLIT_STRIP_RIGHT | WEECHAT_STRING_SPLIT_COLLAPSE_SEPS, @@ -565,7 +565,7 @@ relay_irc_hsignal_irc_redir_cb (const void *pointer, void *data, if (!output) return WEECHAT_RC_OK; - messages = weechat_string_split (output, "\n", + messages = weechat_string_split (output, "\n", NULL, WEECHAT_STRING_SPLIT_STRIP_LEFT | WEECHAT_STRING_SPLIT_STRIP_RIGHT | WEECHAT_STRING_SPLIT_COLLAPSE_SEPS, @@ -1359,6 +1359,7 @@ relay_irc_recv (struct t_relay_client *client, const char *data) irc_argv = weechat_string_split ( irc_args, " ", + NULL, WEECHAT_STRING_SPLIT_STRIP_LEFT | WEECHAT_STRING_SPLIT_STRIP_RIGHT | WEECHAT_STRING_SPLIT_COLLAPSE_SEPS, @@ -1367,6 +1368,7 @@ relay_irc_recv (struct t_relay_client *client, const char *data) irc_argv_eol = weechat_string_split ( irc_args, " ", + NULL, WEECHAT_STRING_SPLIT_STRIP_LEFT | WEECHAT_STRING_SPLIT_STRIP_RIGHT | WEECHAT_STRING_SPLIT_COLLAPSE_SEPS |