diff options
| author | 2022-11-29 05:12:42 +0000 | |
|---|---|---|
| committer | 2022-11-29 05:12:42 +0000 | |
| commit | d5759d1de26a3cf1428a2050a0cfa1abba0fb274 (patch) | |
| tree | 47d727315b48f56a529f141be2b4832d325410d3 /src/modules/m_botmode.cpp | |
| parent | Move the oper statistics to core_oper and rewrite. (diff) | |
Extract the logic for tags that need message-tags to its own type.
Diffstat (limited to 'src/modules/m_botmode.cpp')
| -rw-r--r-- | src/modules/m_botmode.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/modules/m_botmode.cpp b/src/modules/m_botmode.cpp index 1a24a5c65..caf7ca323 100644 --- a/src/modules/m_botmode.cpp +++ b/src/modules/m_botmode.cpp @@ -30,17 +30,15 @@ #include "modules/whois.h" class BotTag final - : public ClientProtocol::MessageTagProvider + : public CTCTags::TagProvider { private: SimpleUserMode& botmode; - CTCTags::CapReference ctctagcap; public: BotTag(Module* mod, SimpleUserMode& bm) - : ClientProtocol::MessageTagProvider(mod) + : CTCTags::TagProvider(mod) , botmode(bm) - , ctctagcap(mod) { } @@ -50,11 +48,6 @@ public: if (user && user->IsModeSet(botmode)) msg.AddTag("bot", this, ""); } - - bool ShouldSendTag(LocalUser* user, const ClientProtocol::MessageTagData& tagdata) override - { - return ctctagcap.IsEnabled(user); - } }; class ModuleBotMode final |
