'reconnections' dict is on IRCBot, not IRCServer
This commit is contained in:
parent
6d1e7ad4b2
commit
0a74a93672
1 changed files with 3 additions and 3 deletions
|
@ -86,9 +86,9 @@ class Module(ModuleManager.BaseModule):
|
||||||
if not server == None:
|
if not server == None:
|
||||||
server.disconnect()
|
server.disconnect()
|
||||||
self.bot.disconnect(server)
|
self.bot.disconnect(server)
|
||||||
elif id in event["server"].reconnections:
|
elif id in self.bot.reconnections:
|
||||||
event["server"].reconnections[id].cancel()
|
self.bot.reconnections[id].cancel()
|
||||||
del event["server"].reconnections[id]
|
del self.bot.reconnections[id]
|
||||||
else:
|
else:
|
||||||
raise utils.EventError("Server not connected")
|
raise utils.EventError("Server not connected")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue