summaryrefslogtreecommitdiff
path: root/src/core/wee-command.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2018-08-17 19:44:41 +0200
committerSébastien Helleu <flashcode@flashtux.org>2018-08-17 19:44:41 +0200
commit466dbbe75b0fe32b9e647adebc7de06ea1b835fe (patch)
tree47040e77a3764a4f2063d938e1f7ffa12150ad3e /src/core/wee-command.c
parent822270cccaec9f76b6fb952aca0e31005a6d7217 (diff)
downloadweechat-466dbbe75b0fe32b9e647adebc7de06ea1b835fe.zip
core: add option "-P" (or "--plugins") to customize the plugins to load at startup
If given, the option replaces the option weechat.plugin.autoload.
Diffstat (limited to 'src/core/wee-command.c')
-rw-r--r--src/core/wee-command.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c
index 7bacb73d5..93ec84a56 100644
--- a/src/core/wee-command.c
+++ b/src/core/wee-command.c
@@ -4534,10 +4534,10 @@ COMMAND_CALLBACK(plugin)
{
plugin_argv = string_split (argv_eol[2], " ", 0, 0,
&plugin_argc);
- plugin_auto_load (plugin_argc, plugin_argv, 1, 1, 1);
+ plugin_auto_load (NULL, 1, 1, 1, plugin_argc, plugin_argv);
}
else
- plugin_auto_load (0, NULL, 1, 1, 1);
+ plugin_auto_load (NULL, 1, 1, 1, 0, NULL);
return WEECHAT_RC_OK;
}
@@ -4571,7 +4571,7 @@ COMMAND_CALLBACK(plugin)
if (strcmp (argv[2], "*") == 0)
{
plugin_unload_all ();
- plugin_auto_load (plugin_argc, plugin_argv, 1, 1, 1);
+ plugin_auto_load (NULL, 1, 1, 1, plugin_argc, plugin_argv);
}
else
{
@@ -4586,7 +4586,7 @@ COMMAND_CALLBACK(plugin)
else
{
plugin_unload_all ();
- plugin_auto_load (0, NULL, 1, 1, 1);
+ plugin_auto_load (NULL, 1, 1, 1, 0, NULL);
}
return WEECHAT_RC_OK;
}