summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-11-10 17:48:49 +0000
committerSadie Powell <sadie@witchery.services>2020-11-10 17:48:49 +0000
commit116244f190e8146395d40fb5a43af6b9bb1f6d1f (patch)
tree67a4fcaa078cc96cf0e1afe5cd85371aceb8b365
parent2145cc3f947dc84c2ea006917b27cd525ac311b8 (diff)
Prioritise connectban and dnsbl after core_xline.
-rw-r--r--src/modules/m_connectban.cpp6
-rw-r--r--src/modules/m_dnsbl.cpp6
2 files changed, 12 insertions, 0 deletions
diff --git a/src/modules/m_connectban.cpp b/src/modules/m_connectban.cpp
index bb3fcbc46..09390bb07 100644
--- a/src/modules/m_connectban.cpp
+++ b/src/modules/m_connectban.cpp
@@ -67,6 +67,12 @@ class ModuleConnectBan
{
}
+ void Prioritize() CXX11_OVERRIDE
+ {
+ Module* corexline = ServerInstance->Modules->Find("core_xline");
+ ServerInstance->Modules->SetPriority(this, I_OnSetUserIP, PRIORITY_AFTER, corexline);
+ }
+
Version GetVersion() CXX11_OVERRIDE
{
return Version("Z-lines IP addresses which make excessive connections to the server.", VF_VENDOR);
diff --git a/src/modules/m_dnsbl.cpp b/src/modules/m_dnsbl.cpp
index 6265ca85a..4873e2322 100644
--- a/src/modules/m_dnsbl.cpp
+++ b/src/modules/m_dnsbl.cpp
@@ -279,6 +279,12 @@ class ModuleDNSBL : public Module, public Stats::EventListener
ServerInstance->SNO->EnableSnomask('d', "DNSBL");
}
+ void Prioritize() CXX11_OVERRIDE
+ {
+ Module* corexline = ServerInstance->Modules->Find("core_xline");
+ ServerInstance->Modules->SetPriority(this, I_OnSetUserIP, PRIORITY_AFTER, corexline);
+ }
+
Version GetVersion() CXX11_OVERRIDE
{
return Version("Allows the server administrator to check the IP address of connecting users against a DNSBL.", VF_VENDOR);