mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Factoids: Make sure _http_running is assigned before being used.
This commit is contained in:
parent
c39cc4a6b5
commit
d0476c9eb2
@ -193,6 +193,7 @@ class Factoids(callbacks.Plugin, plugins.ChannelDBHandler):
|
|||||||
def __init__(self, irc):
|
def __init__(self, irc):
|
||||||
callbacks.Plugin.__init__(self, irc)
|
callbacks.Plugin.__init__(self, irc)
|
||||||
plugins.ChannelDBHandler.__init__(self)
|
plugins.ChannelDBHandler.__init__(self)
|
||||||
|
self._http_running = False
|
||||||
conf.supybot.plugins.Factoids.web.enable.addCallback(self._doHttpConf)
|
conf.supybot.plugins.Factoids.web.enable.addCallback(self._doHttpConf)
|
||||||
if self.registryValue('web.enable'):
|
if self.registryValue('web.enable'):
|
||||||
self._startHttp()
|
self._startHttp()
|
||||||
|
Loading…
Reference in New Issue
Block a user