From fefaae11098b060c368993144a37a144afe9ba90 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Mon, 15 Oct 2018 15:38:16 -0700 Subject: [PATCH] Don't autojoin channels Don't pass the channels list to super in the irc bot class init method because this appears to cause autojoining to happen which breaks because we have too many channels. Instead let the event driven processing join and part channels as needed to make the least recently used channel rotation with channel limit work. Change-Id: I447e75e84526d08fb9ec88eaae9a90f950dc5349 --- gerritbot/bot.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gerritbot/bot.py b/gerritbot/bot.py index d6cc226..1185a0e 100755 --- a/gerritbot/bot.py +++ b/gerritbot/bot.py @@ -103,8 +103,7 @@ class GerritBot(SASL, SSL, irc.bot.SingleServerIRCBot): server_list=[(server, port)], nickname=nickname, realname=nickname, - ident_password=password, - channels=channels) + ident_password=password) self.all_channels = {} for name in channels: self.all_channels[name] = Channel(name)