From 49b665809ca66c26dbe1161e8b04dcff407a3d73 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Mon, 12 Sep 2016 18:28:00 +0200 Subject: m_shun Add support for shunning CIDR masks Issue #1195 --- src/modules/m_shun.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/modules') diff --git a/src/modules/m_shun.cpp b/src/modules/m_shun.cpp index 5388bb485..022726524 100644 --- a/src/modules/m_shun.cpp +++ b/src/modules/m_shun.cpp @@ -44,6 +44,9 @@ public: if (InspIRCd::Match(u->GetFullHost(), matchtext) || InspIRCd::Match(u->GetFullRealHost(), matchtext) || InspIRCd::Match(u->nick+"!"+u->ident+"@"+u->GetIPString(), matchtext)) return true; + if (InspIRCd::MatchCIDR(u->GetIPString(), matchtext, ascii_case_insensitive_map)) + return true; + return false; } -- cgit v1.2.3