diff options
| author | Sadie Powell <sadie@witchery.services> | 2024-02-26 15:44:36 +0000 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2024-02-26 15:50:35 +0000 |
| commit | 57674f5869a216e0ffc8a7c9cb59f86d1bae1f88 (patch) | |
| tree | e83abffe6aa40a091fdd7e2cb1f170731e1c9d71 /modules/protocol | |
| parent | c6cb4ba159a8916243d7ac5a5c4e8d13942baf99 (diff) | |
Replace IRCDProto::CanSendTags with IsTagValid.
Not every IRC server accepts arbitrary tags so this is a better
way to handle tag filtering.
Diffstat (limited to 'modules/protocol')
| -rw-r--r-- | modules/protocol/inspircd.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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 |
