From: brain Date: Sat, 4 Feb 2006 17:12:14 +0000 (+0000) Subject: Added support for space-seperated lists here, too X-Git-Tag: v2.0.23~9012 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=d80e7d86338a76cfab28f6ff25e0cc71b5de0adc;p=user%2Fhenk%2Fcode%2Finspircd.git Added support for space-seperated lists here, too git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3075 e03df62e-2008-0410-955e-edbf42e46eb7 --- diff --git a/src/modules/extra/m_sqloper.cpp b/src/modules/extra/m_sqloper.cpp index aefc8528d..73422e49e 100644 --- a/src/modules/extra/m_sqloper.cpp +++ b/src/modules/extra/m_sqloper.cpp @@ -34,6 +34,7 @@ using namespace std; #include "inspircd.h" #include "helperfuncs.h" #include "m_sql.h" +#include "cmd_oper.h" /* $ModDesc: Allows storage of oper credentials in an SQL table */ @@ -156,7 +157,7 @@ class ModuleSQLOper : public Module std::string TypeName = Conf->ReadValue("type","name",j); Srv->Log(DEBUG,"Scanning opertype: "+TypeName); std::string pattern = std::string(user->ident) + "@" + std::string(user->host); - if ((TypeName == rowresult->GetField("type")) && (Srv->MatchText(pattern,rowresult->GetField("hostname")))) + if ((TypeName == rowresult->GetField("type")) && (OneOfMatches(pattern,rowresult->GetField("hostname")))) { Srv->Log(DEBUG,"Host and type match: "+TypeName+" "+rowresult->GetField("type")); /* found this oper's opertype */