mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Forgot this import with the src/Owner.py import that supported it.
This commit is contained in:
parent
98062e8844
commit
fbd3f46788
@ -91,13 +91,11 @@ def registerGroup(Group, name, group=None):
|
||||
|
||||
def registerGlobalValue(group, name, value):
|
||||
value.channelValue = False
|
||||
#value._lastModified = time.time() # So reloads don't change the value.
|
||||
return group.register(name, value)
|
||||
|
||||
def registerChannelValue(group, name, value):
|
||||
value._supplyDefault = True
|
||||
value.channelValue = True
|
||||
#value._lastModified = time.time() # So reloads don't change the value.
|
||||
return group.register(name, value)
|
||||
|
||||
def registerPlugin(name, currentValue=None, public=True):
|
||||
@ -614,6 +612,13 @@ registerGlobalValue(supybot.directories, 'plugins',
|
||||
[config supybot.directories.plugins], newPluginDirectory'."""))
|
||||
|
||||
registerGroup(supybot, 'plugins') # This will be used by plugins, but not here.
|
||||
registerGlobalValue(supybot.plugins, 'alwaysLoadDefault',
|
||||
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 :)"""))
|
||||
|
||||
###
|
||||
# supybot.databases. For stuff relating to Supybot's databases (duh!)
|
||||
|
Loading…
Reference in New Issue
Block a user