mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-04 08:34:11 +01:00
At least import the plugin module, so configuration is preserved.
This commit is contained in:
parent
0d6136610e
commit
285ac5ef6d
@ -140,7 +140,8 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg):
|
|||||||
loadPluginClass(irc, m)
|
loadPluginClass(irc, m)
|
||||||
self.log.info('Loading plugins/ plugins.')
|
self.log.info('Loading plugins/ plugins.')
|
||||||
for (name, value) in conf.supybot.plugins.getValues(fullNames=False):
|
for (name, value) in conf.supybot.plugins.getValues(fullNames=False):
|
||||||
if value() and irc.getCallback(name) is None:
|
if irc.getCallback(name) is None:
|
||||||
|
if value():
|
||||||
if not irc.getCallback(name):
|
if not irc.getCallback(name):
|
||||||
self.log.info('Loading %s.' % name)
|
self.log.info('Loading %s.' % name)
|
||||||
try:
|
try:
|
||||||
@ -148,6 +149,9 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg):
|
|||||||
loadPluginClass(irc, m)
|
loadPluginClass(irc, m)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
log.exception('Failed to load %s:' % name)
|
log.exception('Failed to load %s:' % name)
|
||||||
|
else:
|
||||||
|
# Let's import the module so configuration is preserved.
|
||||||
|
_ = loadPluginModule(name)
|
||||||
|
|
||||||
def disambiguate(self, irc, tokens, ambiguousCommands=None):
|
def disambiguate(self, irc, tokens, ambiguousCommands=None):
|
||||||
"""Disambiguates the given tokens based on the plugins loaded and
|
"""Disambiguates the given tokens based on the plugins loaded and
|
||||||
|
Loading…
Reference in New Issue
Block a user