]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Added support for space-seperated lists here, too
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 4 Feb 2006 17:12:14 +0000 (17:12 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 4 Feb 2006 17:12:14 +0000 (17:12 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3075 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/extra/m_sqloper.cpp

index aefc8528db357e213adfbcf4326e499e8e619398..73422e49e851968c9a1c09a52c02a262728551b5 100644 (file)
@@ -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 */