diff options
| author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-05-25 19:58:49 +0200 |
|---|---|---|
| committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-05-25 19:58:49 +0200 |
| commit | 29fe803bfde71a5da12c79441e1aec39769cebc0 (patch) | |
| tree | 3bd1cc81157a4b1e5d47b025d1bfa9a7cc26a245 | |
| parent | 712570847b88fe754c3fd4cb9e42bf3b354c3fe4 (diff) | |
Add a reconnect method to Bot.
| -rwxr-xr-x | fot.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |
