aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_muteban.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-01-05 14:41:06 +0000
committerGravatar Sadie Powell2020-01-05 14:41:06 +0000
commitf8013e089955329bbf915c1617f668618533c266 (patch)
tree6244df0adc4dea3e2fd9af4158648d7d4bac9d03 /src/modules/m_muteban.cpp
parentMerge branch 'insp3' into master. (diff)
Move ISupport logic out of the core and into core_info.
Diffstat (limited to 'src/modules/m_muteban.cpp')
-rw-r--r--src/modules/m_muteban.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_muteban.cpp b/src/modules/m_muteban.cpp
index b6fb62f27..37b0ffbf5 100644
--- a/src/modules/m_muteban.cpp
+++ b/src/modules/m_muteban.cpp
@@ -20,10 +20,12 @@
#include "inspircd.h"
#include "modules/ctctags.h"
+#include "modules/isupport.h"
class ModuleQuietBan
: public Module
, public CTCTags::EventListener
+ , public ISupport::EventListener
{
private:
bool notifyuser;
@@ -31,6 +33,7 @@ class ModuleQuietBan
public:
ModuleQuietBan()
: CTCTags::EventListener(this)
+ , ISupport::EventListener(this)
{
}
@@ -76,7 +79,7 @@ class ModuleQuietBan
return HandleMessage(user, target, details.echo_original);
}
- void On005Numeric(std::map<std::string, std::string>& tokens) override
+ void OnBuildISupport(ISupport::TokenMap& tokens) override
{
tokens["EXTBAN"].push_back('m');
}