mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 04:39:26 +01:00
Factoids, Services: Fix crash when imported by supybot-plugin-doc
This commit is contained in:
parent
c28d517d6f
commit
24f20dcb86
@ -262,8 +262,10 @@ class Factoids(callbacks.Plugin, plugins.ChannelDBHandler):
|
||||
s = self.registryValue('learnSeparator', chan, network)
|
||||
help = callbacks.getHelp
|
||||
if simpleSyntax is None:
|
||||
irc = dynamic.irc
|
||||
network = irc.network if irc else None
|
||||
simpleSyntax = conf.supybot.reply.showSimpleSyntax.getSpecific(
|
||||
dynamic.irc.network, chan)()
|
||||
network, chan)()
|
||||
if simpleSyntax:
|
||||
help = callbacks.getSyntax
|
||||
return help(method,
|
||||
|
@ -61,7 +61,8 @@ class Services(callbacks.Plugin):
|
||||
def __init__(self, irc):
|
||||
self.__parent = super(Services, self)
|
||||
self.__parent.__init__(irc)
|
||||
for nick in self.registryValue('nicks', network=irc.network):
|
||||
network = irc.network if irc else None
|
||||
for nick in self.registryValue('nicks', network=network):
|
||||
config.registerNick(nick)
|
||||
self.reset()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user