mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 14:26:39 +02:00
Added command line arguments to disable auto-connect to servers and plugins auto-load
This commit is contained in:
@@ -851,7 +851,7 @@ plugin_unload_all ()
|
||||
*/
|
||||
|
||||
void
|
||||
plugin_init ()
|
||||
plugin_init (int auto_load)
|
||||
{
|
||||
char *list_plugins, *pos, *pos2;
|
||||
|
||||
@@ -859,7 +859,7 @@ plugin_init ()
|
||||
plugin_config_read ();
|
||||
|
||||
/* auto-load plugins if asked */
|
||||
if (cfg_plugins_autoload && cfg_plugins_autoload[0])
|
||||
if (auto_load && cfg_plugins_autoload && cfg_plugins_autoload[0])
|
||||
{
|
||||
if (ascii_strcasecmp (cfg_plugins_autoload, "*") == 0)
|
||||
plugin_auto_load ();
|
||||
|
||||
Reference in New Issue
Block a user