From 57674f5869a216e0ffc8a7c9cb59f86d1bae1f88 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 26 Feb 2024 15:44:36 +0000 Subject: Replace IRCDProto::CanSendTags with IsTagValid. Not every IRC server accepts arbitrary tags so this is a better way to handle tag filtering. --- modules/protocol/inspircd.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/protocol/inspircd.cpp b/modules/protocol/inspircd.cpp index 7cb86598a..17f6fb14a 100644 --- a/modules/protocol/inspircd.cpp +++ b/modules/protocol/inspircd.cpp @@ -117,7 +117,6 @@ public: CanSVSHold = true; CanSVSLogout = true; CanCertFP = true; - CanSendTags = true; RequiresID = true; MaxModes = 20; MaxLine = 4096; @@ -583,6 +582,12 @@ public: return true; } + + bool IsTagValid(const Anope::string &name, const Anope::string &tvalue) + { + // InspIRCd accepts arbitrary message tags. + return true; + } }; class InspIRCdAutoOpMode final -- cgit