summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-mode.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/irc/irc-mode.c')
-rw-r--r--src/plugins/irc/irc-mode.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/plugins/irc/irc-mode.c b/src/plugins/irc/irc-mode.c
index 56a3b5c3d..34a870aba 100644
--- a/src/plugins/irc/irc-mode.c
+++ b/src/plugins/irc/irc-mode.c
@@ -130,7 +130,11 @@ irc_mode_channel_update (struct t_irc_server *server,
pos_args++;
while (pos_args[0] == ' ')
pos_args++;
- argv = weechat_string_split (pos_args, " ", 0, 0, &argc);
+ argv = weechat_string_split (pos_args, " ",
+ WEECHAT_STRING_SPLIT_STRIP_LEFT
+ | WEECHAT_STRING_SPLIT_STRIP_RIGHT
+ | WEECHAT_STRING_SPLIT_COLLAPSE_SEPS,
+ 0, &argc);
}
else
{
@@ -338,7 +342,11 @@ irc_mode_channel_set (struct t_irc_server *server,
argc = 0;
argv = NULL;
if (modes_arguments)
- argv = weechat_string_split (modes_arguments, " ", 0, 0, &argc);
+ argv = weechat_string_split (modes_arguments, " ",
+ WEECHAT_STRING_SPLIT_STRIP_LEFT
+ | WEECHAT_STRING_SPLIT_STRIP_RIGHT
+ | WEECHAT_STRING_SPLIT_COLLAPSE_SEPS,
+ 0, &argc);
current_arg = 0;