summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2016-05-13 19:37:19 +0200
committerSébastien Helleu <flashcode@flashtux.org>2016-05-13 19:37:19 +0200
commitaf83fb55e10b3648656f540a5cb3ec826ea7440c (patch)
tree3e1c92af0ebcbc2fa63051a7c59bfa364c37a05d /src/plugins
parente94e4a92f4a6867915a4c423881bd379f0c1191e (diff)
downloadweechat-af83fb55e10b3648656f540a5cb3ec826ea7440c.zip
relay: allow escape of comma in command "init" (weechat protocol) (issue #730)
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/relay/weechat/relay-weechat-protocol.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/relay/weechat/relay-weechat-protocol.c b/src/plugins/relay/weechat/relay-weechat-protocol.c
index 34a59745d..834984738 100644
--- a/src/plugins/relay/weechat/relay-weechat-protocol.c
+++ b/src/plugins/relay/weechat/relay-weechat-protocol.c
@@ -170,14 +170,14 @@ relay_weechat_protocol_is_sync (struct t_relay_client *ptr_client,
RELAY_WEECHAT_PROTOCOL_CALLBACK(init)
{
char **options, *pos, *password;
- int num_options, i, compression;
+ int i, compression;
RELAY_WEECHAT_PROTOCOL_MIN_ARGS(1);
- options = weechat_string_split (argv_eol[0], ",", 0, 0, &num_options);
+ options = weechat_string_split_command (argv_eol[0], ',');
if (options)
{
- for (i = 0; i < num_options; i++)
+ for (i = 0; options[i]; i++)
{
pos = strchr (options[i], '=');
if (pos)
@@ -208,7 +208,7 @@ RELAY_WEECHAT_PROTOCOL_CALLBACK(init)
}
}
}
- weechat_string_free_split (options);
+ weechat_string_free_split_command (options);
}
return WEECHAT_RC_OK;