From f4a4901fee693791493c340fd380658a24d4cf26 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 6 Aug 2006 16:09:29 +0000 Subject: Support CIDR, CIDR zline, /oper and CIDR tags. NOTE: With CIDR oper, ident field is not supported (yet) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4732 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/xline.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/xline.cpp') diff --git a/src/xline.cpp b/src/xline.cpp index 7970f977e..32619b18c 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -558,10 +558,10 @@ char* matches_zline(const char* ipaddr) if ((zlines.empty()) && (pzlines.empty())) return NULL; for (std::vector::iterator i = zlines.begin(); i != zlines.end(); i++) - if (match(ipaddr,i->ipaddr)) + if (match(ipaddr,i->ipaddr,true)) return i->reason; for (std::vector::iterator i = pzlines.begin(); i != pzlines.end(); i++) - if (match(ipaddr,i->ipaddr)) + if (match(ipaddr,i->ipaddr,true)) return i->reason; return NULL; } -- cgit v1.2.3