diff options
author | lassulus <lassulus@googlemail.com> | 2014-01-07 17:09:44 +0100 |
---|---|---|
committer | lassulus <lassulus@googlemail.com> | 2014-01-07 17:09:44 +0100 |
commit | bf8e9d0c833efed489bb5c920fa859b123dd75bf (patch) | |
tree | c03af88e433e7cb096777a4d7f485bc2a64acca6 /ircbot/contoller.py | |
parent | 5a51adde8b322d34722f50702d6bd553382bc623 (diff) |
ircbot: wait after reconnect
Diffstat (limited to 'ircbot/contoller.py')
-rwxr-xr-x | ircbot/contoller.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ircbot/contoller.py b/ircbot/contoller.py index 95e1132b..8db32b8e 100755 --- a/ircbot/contoller.py +++ b/ircbot/contoller.py @@ -43,6 +43,10 @@ class NewsBot(irc.bot.SingleServerIRCBot): answer = self.read_message(args_array[1:]) self.send(event.target, answer) + def on_invite(self, connection, event): + for chan in event.arguments: + connection.join(chan) + def read_message(self, args): try: if args[0] in [x for x in commands.__dict__.keys() if x.find('_')]: |