relay: allow escape of comma in command "init" (weechat protocol) (issue #730)
This commit is contained in:
parent
e94e4a92f4
commit
af83fb55e1
@ -23,6 +23,7 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
|
||||
|
||||
* api: fix crash in function string_split_command() when the separator is not
|
||||
a semicolon (issue #731)
|
||||
* relay: allow escape of comma in command "init" (weechat protocol) (issue #730)
|
||||
|
||||
[[v1.5]]
|
||||
== Version 1.5 (2016-05-01)
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user