summaryrefslogtreecommitdiff
path: root/src/cmd_oper.cpp
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-05 09:55:13 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-05 09:55:13 +0000
commit4be4ccdf2628423644d42531322bea913dfe0191 (patch)
tree0f3ec5572d2dd19598671a83281f1abf9cb2727a /src/cmd_oper.cpp
parent8c1b599dd3e1c224216fdfe5dc74100c4f4265df (diff)
Add .c_str()'s to m_sqloper in call to OneOfMatches(), and change prototype of OneOfMatches to take const char* instead of char*. Either that or case all the .c_str()'s to lose the const :"
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3091 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_oper.cpp')
-rw-r--r--src/cmd_oper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd_oper.cpp b/src/cmd_oper.cpp
index 20a4b5ba8..8e57329d4 100644
--- a/src/cmd_oper.cpp
+++ b/src/cmd_oper.cpp
@@ -62,7 +62,7 @@ extern std::vector<userrec*> all_opers;
extern std::vector<userrec*> local_users;
extern userrec* fd_ref_table[MAX_DESCRIPTORS];
-bool OneOfMatches(char* host, char* hostlist)
+bool OneOfMatches(const char* host, const char* hostlist)
{
std::stringstream hl(hostlist);
std::string xhost;