mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
alwaysLoadDefault => alwaysLoadImportant
This commit is contained in:
parent
e9b5f0ec61
commit
dac65f455f
@ -295,9 +295,9 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg):
|
||||
|
||||
def do001(self, irc, msg):
|
||||
self.log.info('Loading plugins.')
|
||||
alwaysLoadSrcPlugins = conf.supybot.plugins.alwaysLoadDefault()
|
||||
alwaysLoadSrcPlugins = conf.supybot.plugins.alwaysLoadImportant()
|
||||
for (name, value) in conf.supybot.plugins.getValues(fullNames=False):
|
||||
if name.lower() in ('owner', 'alwaysloaddefault'):
|
||||
if name.lower() in ('owner', 'alwaysloadimportant'):
|
||||
continue
|
||||
if irc.getCallback(name) is None:
|
||||
load = value()
|
||||
@ -305,7 +305,7 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg):
|
||||
if alwaysLoadSrcPlugins:
|
||||
s = '%s is configured not to be loaded, but is being '\
|
||||
'loaded anyway because ' \
|
||||
'supybot.plugins.alwaysLoadDefault is True.'
|
||||
'supybot.plugins.alwaysLoadImportant is True.'
|
||||
self.log.warning(s, name)
|
||||
load = True
|
||||
if load:
|
||||
|
12
src/conf.py
12
src/conf.py
@ -713,13 +713,13 @@ registerGlobalValue(supybot.directories, 'plugins',
|
||||
[config supybot.directories.plugins], newPluginDirectory'."""))
|
||||
|
||||
registerGroup(supybot, 'plugins', orderAlphabetically=True)
|
||||
registerGlobalValue(supybot.plugins, 'alwaysLoadDefault',
|
||||
registerGlobalValue(supybot.plugins, 'alwaysLoadImportant',
|
||||
registry.Boolean(True, """Determines whether the bot will always load
|
||||
the default plugins (Admin, Channel, Config, Misc, Owner, and User)
|
||||
regardless of what their configured state is. Generally, if these
|
||||
plugins are configured not to load, you didn't do it on purpose, and
|
||||
you still want them to load. Users who don't want to load these plugins
|
||||
are smart enough to change the value of this variable appropriately :)"""))
|
||||
important plugins (Admin, Channel, Config, Misc, Owner, and User)
|
||||
regardless of what their configured state is. Generally, if these plugins
|
||||
are configured not to load, you didn't do it on purpose, and you still
|
||||
want them to load. Users who don't want to load these plugins are smart
|
||||
enough to change the value of this variable appropriately :)"""))
|
||||
|
||||
###
|
||||
# supybot.databases. For stuff relating to Supybot's databases (duh!)
|
||||
|
Loading…
Reference in New Issue
Block a user