summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-11 16:56:07 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-11 16:56:07 +0000
commit871dd3c93bba5a8b60e9d785815dfbc579122652 (patch)
treed106118996759b6917c0dd614807139e2fd9e8e7 /src
parenta323e20162d634dbd90f9ba609fe996dcc1b0fe3 (diff)
Missed some stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3664 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/command_parse.cpp4
-rw-r--r--src/modules.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp
index 6ec6f96a2..e81595ac4 100644
--- a/src/command_parse.cpp
+++ b/src/command_parse.cpp
@@ -307,7 +307,7 @@ int CommandParser::LoopCall(command_t* fn, char **parameters, int pcnt, userrec
return 1;
}
-bool CommandParser::IsValidCommand(std::string &commandname, int pcnt, userrec * user)
+bool CommandParser::IsValidCommand(const std::string &commandname, int pcnt, userrec * user)
{
nspace::hash_map<std::string,command_t*>::iterator n = cmdlist.find(commandname);
@@ -330,7 +330,7 @@ bool CommandParser::IsValidCommand(std::string &commandname, int pcnt, userrec *
// calls a handler function for a command
-bool CommandParser::CallHandler(std::string &commandname,char **parameters, int pcnt, userrec *user)
+bool CommandParser::CallHandler(const std::string &commandname,char **parameters, int pcnt, userrec *user)
{
nspace::hash_map<std::string,command_t*>::iterator n = cmdlist.find(commandname);
diff --git a/src/modules.cpp b/src/modules.cpp
index c0251f80b..827604cfa 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -475,7 +475,7 @@ void Server::QuitUser(userrec* user, const std::string &reason)
kill_link(user,reason.c_str());
}
-bool Server::IsUlined(std::string server)
+bool Server::IsUlined(const std::string &server)
{
return is_uline(server.c_str());
}