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
This commit is contained in:
Clark Boylan 2018-10-15 15:38:16 -07:00
parent 57a669d35d
commit fefaae1109
1 changed files with 1 additions and 2 deletions

View File

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