aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_serverban.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_serverban.cpp
parentMerge branch 'insp3' into master. (diff)
Move ISupport logic out of the core and into core_info.
Diffstat (limited to 'src/modules/m_serverban.cpp')
-rw-r--r--src/modules/m_serverban.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/modules/m_serverban.cpp b/src/modules/m_serverban.cpp
index f75755f14..6164db644 100644
--- a/src/modules/m_serverban.cpp
+++ b/src/modules/m_serverban.cpp
@@ -18,10 +18,18 @@
#include "inspircd.h"
+#include "modules/isupport.h"
-class ModuleServerBan : public Module
+class ModuleServerBan
+ : public Module
+ , public ISupport::EventListener
{
public:
+ ModuleServerBan()
+ : ISupport::EventListener(this)
+ {
+ }
+
Version GetVersion() override
{
return Version("Provides extban 's' to ban users connected to a specified server", VF_OPTCOMMON|VF_VENDOR);
@@ -37,7 +45,7 @@ class ModuleServerBan : public Module
return MOD_RES_PASSTHRU;
}
- void On005Numeric(std::map<std::string, std::string>& tokens) override
+ void OnBuildISupport(ISupport::TokenMap& tokens) override
{
tokens["EXTBAN"].push_back('s');
}