From 58f4306bb6e1f91076fccf30a3b43a40b3d1915a Mon Sep 17 00:00:00 2001 From: w00t Date: Fri, 22 Aug 2008 15:16:46 +0000 Subject: Revert automated conversion by Special, as it (unfortunately) neglects some details. It provides a useful start point, though, so it'll be used as the basis for the final conversion. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10215 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_check.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/modules/m_check.cpp') diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp index a03e2d6d3..ac9e8f2ac 100644 --- a/src/modules/m_check.cpp +++ b/src/modules/m_check.cpp @@ -12,6 +12,7 @@ */ #include "inspircd.h" +#include "wildcard.h" /* $ModDesc: Provides the /check command to retrieve information on a user, channel, or IP address */ @@ -130,13 +131,13 @@ class CommandCheck : public Command /* hostname or other */ for (user_hash::const_iterator a = ServerInstance->Users->clientlist->begin(); a != ServerInstance->Users->clientlist->end(); a++) { - if (InspIRCd::Match(a->second->host, parameters[0]) || match(a->second->dhost, parameters[0])) + if (match(a->second->host, parameters[0]) || match(a->second->dhost, parameters[0])) { /* host or vhost matches mask */ user->WriteServ(checkstr + " match " + ConvToStr(++x) + " " + a->second->GetFullRealHost()); } /* IP address */ - else if (InspIRCd::Match(a->second->GetIPString(), parameters[0], true)) + else if (match(a->second->GetIPString(), parameters[0], true)) { /* same IP. */ user->WriteServ(checkstr + " match " + ConvToStr(++x) + " " + a->second->GetFullRealHost()); -- cgit v1.2.3