From d80e7d86338a76cfab28f6ff25e0cc71b5de0adc Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 4 Feb 2006 17:12:14 +0000 Subject: Added support for space-seperated lists here, too git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3075 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_sqloper.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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 */ -- cgit v1.2.3