diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-18 18:26:07 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-18 18:26:07 +0000 |
commit | cea66039aa62a482a92dd82aedeac60e765e18ca (patch) | |
tree | aaf5e9f74eba5af7a533807b378965a2b34ab037 /src | |
parent | 5e854d57e3ef1b315e754a38c5f0a1287559cc7e (diff) |
Fix two occurances of match() on a const char* here
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9739 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/commands/cmd_list.cpp | 2 | ||||
-rw-r--r-- | src/commands/cmd_oper.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/cmd_list.cpp b/src/commands/cmd_list.cpp index f662f7997..164830a26 100644 --- a/src/commands/cmd_list.cpp +++ b/src/commands/cmd_list.cpp @@ -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; } diff --git a/src/commands/cmd_oper.cpp b/src/commands/cmd_oper.cpp index c09960f13..0e08c3357 100644 --- a/src/commands/cmd_oper.cpp +++ b/src/commands/cmd_oper.cpp @@ -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; } |