mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +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'):
|
||||
try:
|
||||
(_, _, name) = name.split('.')
|
||||
except ValueError: #unpack list of wrong size.
|
||||
except ValueError: # unpack list of wrong size.
|
||||
continue
|
||||
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):
|
||||
return methodName == 'log' or \
|
||||
|
Loading…
Reference in New Issue
Block a user