Begin work on API endpoint

This commit is contained in:
2022-07-21 13:40:11 +01:00
parent e5a14b2c91
commit f0acbdbfa3
5 changed files with 27 additions and 4 deletions

View File

@@ -452,7 +452,8 @@ class IRCBot(IRCClient):
def got_list(self, listinfo):
if len(listinfo) == 0: # probably ngircd not supporting LIST >0
return
chankeep.initialList(self.net, self.num, listinfo, self.chanlimit)
if main.config["ChanKeep"]["Enabled"]:
chankeep.initialList(self.net, self.num, listinfo, self.chanlimit)
def recheckList(self):
allRelays = chankeep.allRelaysActive(self.net)