We should be checking if a channel name is in server.channels, not server

This commit is contained in:
jesopo 2018-12-19 21:43:10 +00:00
parent 8d8ebf7d55
commit 41d680dad7

View file

@ -620,7 +620,7 @@ class Module(ModuleManager.BaseModule):
def handle_477(self, event):
channel_name = utils.irc.lower(event["server"].case_mapping,
event["args"][1])
if channel_name in event["server"]:
if channel_name in event["server"].channels:
key = event["server"].attempted_join[channel_name]
self.timers.add("rejoin", 5, channel_name=channe_name, key=key,
server_id=event["server"].id)