Make defaultPlugins get automatically read from the registry.

This commit is contained in:
Jeremy Fincher 2004-02-08 09:58:45 +00:00
parent 15ae4d5c2a
commit b5c52a9c11

View File

@ -161,6 +161,12 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg):
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 \