mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Make defaultPlugins get automatically read from the registry.
This commit is contained in:
parent
15ae4d5c2a
commit
b5c52a9c11
@ -158,9 +158,15 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg):
|
|||||||
if name.startswith('supybot.plugins'):
|
if name.startswith('supybot.plugins'):
|
||||||
try:
|
try:
|
||||||
(_, _, name) = name.split('.')
|
(_, _, name) = name.split('.')
|
||||||
except ValueError: #unpack list of wrong size.
|
except ValueError: # unpack list of wrong size.
|
||||||
continue
|
continue
|
||||||
conf.registerPlugin(name)
|
conf.registerPlugin(name)
|
||||||
|
if name.startswith('supybot.commands.defaultPlugins'):
|
||||||
|
try:
|
||||||
|
(_, _, _, name) = name.split('.')
|
||||||
|
except ValueError: # unpack list of wrong size.
|
||||||
|
continue
|
||||||
|
registerDefaultPlugin(name, s)
|
||||||
|
|
||||||
def isCommand(self, methodName):
|
def isCommand(self, methodName):
|
||||||
return methodName == 'log' or \
|
return methodName == 'log' or \
|
||||||
|
Loading…
Reference in New Issue
Block a user