diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2010-03-31 22:39:09 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2010-03-31 22:39:09 +0200 |
commit | 848cce2c8a7f100e68496f6c4677b33547c293ee (patch) | |
tree | ff7499a0ca22f279d456043816516f357a1601a3 /src/core | |
parent | 253ff0700974505c9791ce588ddf2ce596005315 (diff) | |
download | weechat-848cce2c8a7f100e68496f6c4677b33547c293ee.zip |
Improve plugins autoload (option weechat.plugin.autoload): allow to use "*" as joker and "!" to prevent a plugin from being autoloaded (task #6361)
Some examples for option weechat.plugin.autoload:
- load all plugins (default): "*"
- load only alias, charset, irc and logger: "alias,charset,irc,logger"
- load all plugins but not lua and tcl: "*,!lua,!tcl"
- load all plugins but not perl and python: "*,!p*" (not recommended because new future plugins may begin with "p")
- do not load any plugin (weechat core alone is not really useful eheh): "!*"
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/wee-config.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/wee-config.c b/src/core/wee-config.c index e7006f996..500d7419f 100644 --- a/src/core/wee-config.c +++ b/src/core/wee-config.c @@ -1992,9 +1992,10 @@ config_weechat_init_options () weechat_config_file, ptr_section, "autoload", "string", N_("comma separated list of plugins to load automatically " - "at startup, \"*\" means all plugins found (names may " - "be partial, for example \"perl\" is ok for " - "\"perl.so\")"), + "at startup, \"*\" means all plugins found, a name beginning with " + "\"!\" is a negative value to prevent a plugin from being loaded, " + "names can start or end with \"*\" to match several plugins " + "(examples: \"*\", \"*,!lua,!tcl\")"), NULL, 0, 0, "*", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL); config_plugin_debug = config_file_new_option ( weechat_config_file, ptr_section, |