diff options
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('_')]: |