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