summaryrefslogtreecommitdiff
path: root/src/modules/extra
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-04 17:12:14 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-04 17:12:14 +0000
commitd80e7d86338a76cfab28f6ff25e0cc71b5de0adc (patch)
treeb475c296722c82c79d924615f17db41932c69d74 /src/modules/extra
parentfd556922919a35d6f292089fe2340ebc16574a2b (diff)
Added support for space-seperated lists here, too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3075 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/extra')
-rw-r--r--src/modules/extra/m_sqloper.cpp3
1 files changed, 2 insertions, 1 deletions
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 */