diff --git a/ircbot/bot.py b/ircbot/bot.py index 024abb1..260dc23 100644 --- a/ircbot/bot.py +++ b/ircbot/bot.py @@ -539,7 +539,7 @@ class IRCBot(irc.client.SimpleIRCClient): # sleep before doing autojoins time.sleep(self.server_config.delay_before_joins) - for chan in IrcChannel.objects.filter(autojoin=True): + for chan in IrcChannel.objects.filter(autojoin=True, server=connection.server_config): log.info("autojoining %s", chan.name) self.connection.join(chan)