diff --git a/fdskun.py b/fdskun.py index 1b07df8..9992119 100644 --- a/fdskun.py +++ b/fdskun.py @@ -16,11 +16,11 @@ class MonitorBot(irc.IRCClient): self.nickname = nickname def connectionMade(self): - self.factory.connectionMade(self) + irc.IRCClient.connectionMade(self) print("[connected at %s]" % time.asctime(time.localtime(time.time()))) def connectionLost(self, reason): - self.factory.connectionLost(self, reason) + irc.IRCClient.connectionLost(self, reason) print("[disconnected at %s]" % time.asctime(time.localtime(time.time()))) # callbacks for events