From 16b491fdab795df758eb0e1252691e1a4995d234 Mon Sep 17 00:00:00 2001 From: James Lu Date: Thu, 21 Dec 2017 01:34:41 -0800 Subject: [PATCH] ts6_common, p10: declare protocol cap has-statusmsg --- protocols/p10.py | 3 ++- protocols/ts6_common.py | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/protocols/p10.py b/protocols/p10.py index 2b1a91e..a10db95 100644 --- a/protocols/p10.py +++ b/protocols/p10.py @@ -166,7 +166,8 @@ class P10Protocol(IRCS2SProtocol): 'WALLCHOPS': 'NOTICE', 'WALLHOPS': 'NOTICE', 'WALLVOICES': 'NOTICE'} - self.protocol_caps |= {'slash-in-hosts', 'underscore-in-hosts'} + self.protocol_caps |= {'slash-in-hosts', 'underscore-in-hosts', + 'has-statusmsg'} # OPMODE is like SAMODE on other IRCds, and it follows the same modesetting syntax. self.handle_opmode = self.handle_mode diff --git a/protocols/ts6_common.py b/protocols/ts6_common.py index bd1bc43..7b366af 100644 --- a/protocols/ts6_common.py +++ b/protocols/ts6_common.py @@ -107,6 +107,11 @@ class TS6BaseProtocol(IRCS2SProtocol): # SID generator for TS6. self.sidgen = TS6SIDGenerator(self) + # Most TS6 variations (unreal, inspircd, charybdis) support this. For + # pure TS6, we also require the CHW capability which explicitly declares + # support. + self.protocol_caps |= {'has-statusmsg'} + ### OUTGOING COMMANDS def kill(self, numeric, target, reason):