From 88cb327d021cb39fb6f291e96a3ac0c6ecffbc15 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 8 Nov 2018 14:30:50 +0000 Subject: [PATCH] Only send 'PROTOCTL NAMESX' when we're not already got IRCv3's multi-prefix CAP active --- modules/line_handler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/line_handler.py b/modules/line_handler.py index 5554183d..0033ea4f 100644 --- a/modules/line_handler.py +++ b/modules/line_handler.py @@ -80,7 +80,8 @@ class Module(ModuleManager.BaseModule): isupport[key] = None 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") if "PREFIX" in isupport: