summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-05-25 19:58:49 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2010-05-25 19:58:49 +0200
commit29fe803bfde71a5da12c79441e1aec39769cebc0 (patch)
tree3bd1cc81157a4b1e5d47b025d1bfa9a7cc26a245
parent712570847b88fe754c3fd4cb9e42bf3b354c3fe4 (diff)
Add a reconnect method to Bot.
-rwxr-xr-xfot.py3
1 files changed, 3 insertions, 0 deletions
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