]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix two occurances of match() on a const char* here
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 18 May 2008 18:26:07 +0000 (18:26 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 18 May 2008 18:26:07 +0000 (18:26 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9739 e03df62e-2008-0410-955e-edbf42e46eb7

src/commands/cmd_list.cpp
src/commands/cmd_oper.cpp

index f662f79973933e0c5ee704bd83acabe7947e733c..164830a26a08387742037905643f4f1188bfb20c 100644 (file)
@@ -54,7 +54,7 @@ CmdResult CommandList::Handle (const std::vector<std::string>& parameters, User
 
                if (parameters.size() && (parameters[0][0] != '<' || parameters[0][0] == '>'))
                {
-                       if (!match(i->second->name, parameters[0].c_str()) && !match(i->second->topic, parameters[0].c_str()))
+                       if (!match(i->second->name, parameters[0]) && !match(i->second->topic, parameters[0]))
                                continue;
                }
 
index c09960f1329883a3489a38f61c95ed18a8e99789..0e08c335747a5c221e3ec65e8bd62866af6d9793 100644 (file)
@@ -22,7 +22,7 @@ bool OneOfMatches(const char* host, const char* ip, const char* hostlist)
        std::string xhost;
        while (hl >> xhost)
        {
-               if (match(host,xhost.c_str()) || match(ip,xhost.c_str(),true))
+               if (match(host, xhost) || match(ip,xhost, true))
                {
                        return true;
                }