Only send 'PROTOCTL NAMESX' when we're not already got IRCv3's multi-prefix CAP

active
This commit is contained in:
jesopo 2018-11-08 14:30:50 +00:00
parent 6bf6905262
commit 88cb327d02

View file

@ -80,7 +80,8 @@ class Module(ModuleManager.BaseModule):
isupport[key] = None isupport[key] = None
event["server"].isupport.update(isupport) event["server"].isupport.update(isupport)
if "NAMESX" in isupport: if "NAMESX" in isupport and not "multi-prefix" in event[
"server"].capabilities:
event["server"].send("PROTOCTL NAMESX") event["server"].send("PROTOCTL NAMESX")
if "PREFIX" in isupport: if "PREFIX" in isupport: