From 29fe803bfde71a5da12c79441e1aec39769cebc0 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Tue, 25 May 2010 19:58:49 +0200 Subject: Add a reconnect method to Bot. --- fot.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'fot.py') diff --git a/fot.py b/fot.py index 6ed05c0..cd7b1ed 100755 --- a/fot.py +++ b/fot.py @@ -94,6 +94,9 @@ class Bot(irc.IRCClient): self.modules = {} irc.IRCClient.connectionLost(self, reason) + def reconnect(self): + self.quit('reconnecting') + class BotFactory(protocol.ReconnectingClientFactory): protocol = Bot -- cgit v1.2.3