477 should check that we're *not* in a channel before trying rejoin
This commit is contained in:
parent
ec5c5808a5
commit
b654660d96
1 changed files with 1 additions and 1 deletions
|
@ -248,7 +248,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
@utils.hook("raw.received.477", default_event=True)
|
@utils.hook("raw.received.477", default_event=True)
|
||||||
def handle_477(self, event):
|
def handle_477(self, event):
|
||||||
channel_name = event["server"].irc_lower(event["line"].args[1])
|
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]
|
key = event["server"].attempted_join[channel_name]
|
||||||
self.timers.add("rejoin", 5, channel_name=channe_name, key=key,
|
self.timers.add("rejoin", 5, channel_name=channe_name, key=key,
|
||||||
server_id=event["server"].id)
|
server_id=event["server"].id)
|
||||||
|
|
Loading…
Reference in a new issue