diff --git a/ircbot/bot.py b/ircbot/bot.py index 7a356ec..52ee194 100644 --- a/ircbot/bot.py +++ b/ircbot/bot.py @@ -211,3 +211,7 @@ def message(self, channel, msg): msg += " [...]" super().message(channel, msg) + + def on_invite(self, channel, inviter): + if inviter not in self.ignored_users: + self.join(channel)