From ed9e5aaab66c4927c22fb1fee092d7026406c869 Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Tue, 20 Oct 2015 17:43:36 +0200 Subject: [PATCH] [TASK] Trying to fix the bots reconnect thing. --- fdskun.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fdskun.py b/fdskun.py index 9992119..1b07df8 100644 --- a/fdskun.py +++ b/fdskun.py @@ -16,11 +16,11 @@ class MonitorBot(irc.IRCClient): self.nickname = nickname def connectionMade(self): - irc.IRCClient.connectionMade(self) + self.factory.connectionMade(self) print("[connected at %s]" % time.asctime(time.localtime(time.time()))) def connectionLost(self, reason): - irc.IRCClient.connectionLost(self, reason) + self.factory.connectionLost(self, reason) print("[disconnected at %s]" % time.asctime(time.localtime(time.time()))) # callbacks for events