From dab57ed68a554f1d0bb23dd5fa583c330a68214a Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 7 Jan 2007 03:04:24 +0000 Subject: Adding CIDR support to m_check: as easy as adding a 'true' to match() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6242 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_check.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp index aa4e1f6cd..a20537460 100644 --- a/src/modules/m_check.cpp +++ b/src/modules/m_check.cpp @@ -136,7 +136,7 @@ class cmd_check : public command_t user->WriteServ(checkstr + " match " + ConvToStr(++x) + " " + a->second->GetFullRealHost()); } /* IP address */ - else if (match(a->second->GetIPString(), parameters[0])) + else if (match(a->second->GetIPString(), parameters[0], true)) { /* same IP. */ user->WriteServ(checkstr + " match " + ConvToStr(++x) + " " + a->second->GetFullRealHost()); -- cgit v1.2.3