Browse Source

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
changes/45/610745/1
Clark Boylan 8 months ago
parent
commit
fefaae1109
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      gerritbot/bot.py

+ 1
- 2
gerritbot/bot.py View File

@@ -103,8 +103,7 @@ class GerritBot(SASL, SSL, irc.bot.SingleServerIRCBot):
103 103
             server_list=[(server, port)],
104 104
             nickname=nickname,
105 105
             realname=nickname,
106
-            ident_password=password,
107
-            channels=channels)
106
+            ident_password=password)
108 107
         self.all_channels = {}
109 108
         for name in channels:
110 109
             self.all_channels[name] = Channel(name)

Loading…
Cancel
Save