diff options
Diffstat (limited to 'src/plugins/plugin.c')
-rw-r--r-- | src/plugins/plugin.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/plugins/plugin.c b/src/plugins/plugin.c index 6ed45e602..dadfdd2a3 100644 --- a/src/plugins/plugin.c +++ b/src/plugins/plugin.c @@ -1004,9 +1004,14 @@ plugin_auto_load (char *force_plugin_autoload, if (ptr_plugin_autoload && ptr_plugin_autoload[0]) { - plugin_autoload_array = string_split (ptr_plugin_autoload, - ",", 0, 0, - &plugin_autoload_count); + plugin_autoload_array = string_split ( + ptr_plugin_autoload, + ",", + WEECHAT_STRING_SPLIT_STRIP_LEFT + | WEECHAT_STRING_SPLIT_STRIP_RIGHT + | WEECHAT_STRING_SPLIT_COLLAPSE_SEPS, + 0, + &plugin_autoload_count); } /* auto-load plugins in custom path */ |