Factoids: Make sure _http_running is assigned before being used.

This commit is contained in:
Valentin Lorentz 2013-06-29 12:24:52 +02:00
parent c39cc4a6b5
commit d0476c9eb2

View File

@ -193,6 +193,7 @@ class Factoids(callbacks.Plugin, plugins.ChannelDBHandler):
def __init__(self, irc):
callbacks.Plugin.__init__(self, irc)
plugins.ChannelDBHandler.__init__(self)
self._http_running = False
conf.supybot.plugins.Factoids.web.enable.addCallback(self._doHttpConf)
if self.registryValue('web.enable'):
self._startHttp()