477 should check that we're *not* in a channel before trying rejoin

This commit is contained in:
jesopo 2019-09-07 14:25:43 +01:00
parent ec5c5808a5
commit b654660d96

View file

@ -248,7 +248,7 @@ class Module(ModuleManager.BaseModule):
@utils.hook("raw.received.477", default_event=True)
def handle_477(self, event):
channel_name = event["server"].irc_lower(event["line"].args[1])
if channel_name in event["server"].channels:
if not 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)