diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_connectban.cpp | 6 | ||||
-rw-r--r-- | src/modules/m_dnsbl.cpp | 6 |
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); |