mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Made do001 handle already-loaded plugins (like, uh, right after reconnecting...)
This commit is contained in:
parent
fea97c96b5
commit
8cc8bba9e0
10
src/Owner.py
10
src/Owner.py
@ -120,11 +120,13 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg):
|
||||
def do001(self, irc, msg):
|
||||
self.log.info('Loading other src/ plugins.')
|
||||
for s in ('Admin', 'Channel', 'Config', 'Misc', 'User'):
|
||||
self.log.info('Loading %s.' % s)
|
||||
m = loadPluginModule(s)
|
||||
loadPluginClass(irc, m)
|
||||
if irc.getCallback(s) is None:
|
||||
self.log.info('Loading %s.' % s)
|
||||
m = loadPluginModule(s)
|
||||
loadPluginClass(irc, m)
|
||||
self.log.info('Loading plugins/ plugins.')
|
||||
for (name, value) in conf.supybot.plugins.getValues():
|
||||
if value():
|
||||
if value() and irc.getCallback(name) is None:
|
||||
s = rsplit(name, '.', 1)[-1]
|
||||
if not irc.getCallback(s):
|
||||
self.log.info('Loading %s.' % s)
|
||||
|
Loading…
Reference in New Issue
Block a user