summaryrefslogtreecommitdiff
path: root/src/plugins/fset/fset-command.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/fset/fset-command.c')
-rw-r--r--src/plugins/fset/fset-command.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/fset/fset-command.c b/src/plugins/fset/fset-command.c
index 6d9324e37..4b510a8a7 100644
--- a/src/plugins/fset/fset-command.c
+++ b/src/plugins/fset/fset-command.c
@@ -469,7 +469,11 @@ fset_command_run_set_cb (const void *pointer, void *data,
rc = WEECHAT_RC_OK;
- argv = weechat_string_split (command, " ", 0, 0, &argc);
+ argv = weechat_string_split (command, " ",
+ WEECHAT_STRING_SPLIT_STRIP_LEFT
+ | WEECHAT_STRING_SPLIT_STRIP_RIGHT
+ | WEECHAT_STRING_SPLIT_COLLAPSE_SEPS,
+ 0, &argc);
if (argc > 2)
goto end;