mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +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):
|
def do001(self, irc, msg):
|
||||||
self.log.info('Loading other src/ plugins.')
|
self.log.info('Loading other src/ plugins.')
|
||||||
for s in ('Admin', 'Channel', 'Config', 'Misc', 'User'):
|
for s in ('Admin', 'Channel', 'Config', 'Misc', 'User'):
|
||||||
self.log.info('Loading %s.' % s)
|
if irc.getCallback(s) is None:
|
||||||
m = loadPluginModule(s)
|
self.log.info('Loading %s.' % s)
|
||||||
loadPluginClass(irc, m)
|
m = loadPluginModule(s)
|
||||||
|
loadPluginClass(irc, m)
|
||||||
|
self.log.info('Loading plugins/ plugins.')
|
||||||
for (name, value) in conf.supybot.plugins.getValues():
|
for (name, value) in conf.supybot.plugins.getValues():
|
||||||
if value():
|
if value() and irc.getCallback(name) is None:
|
||||||
s = rsplit(name, '.', 1)[-1]
|
s = rsplit(name, '.', 1)[-1]
|
||||||
if not irc.getCallback(s):
|
if not irc.getCallback(s):
|
||||||
self.log.info('Loading %s.' % s)
|
self.log.info('Loading %s.' % s)
|
||||||
|
Loading…
Reference in New Issue
Block a user