only autojoin channels for this connection

This commit is contained in:
Brian S. Stephan 2021-04-25 11:38:19 -05:00
parent 9c1109107b
commit 1036c08147
1 changed files with 1 additions and 1 deletions

View File

@ -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)