Revert "[TASK] Trying to fix the bots reconnect thing."

This reverts commit ed9e5aaab6.
This commit is contained in:
Jan Philipp Timme 2015-10-20 17:50:24 +02:00
parent ed9e5aaab6
commit 5ad1a2bbfe

View File

@ -16,11 +16,11 @@ class MonitorBot(irc.IRCClient):
self.nickname = nickname self.nickname = nickname
def connectionMade(self): def connectionMade(self):
self.factory.connectionMade(self) irc.IRCClient.connectionMade(self)
print("[connected at %s]" % time.asctime(time.localtime(time.time()))) print("[connected at %s]" % time.asctime(time.localtime(time.time())))
def connectionLost(self, reason): def connectionLost(self, reason):
self.factory.connectionLost(self, reason) irc.IRCClient.connectionLost(self, reason)
print("[disconnected at %s]" % time.asctime(time.localtime(time.time()))) print("[disconnected at %s]" % time.asctime(time.localtime(time.time())))
# callbacks for events # callbacks for events