aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_botmode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_botmode.cpp')
-rw-r--r--src/modules/m_botmode.cpp11
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