summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-16 10:43:40 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-16 10:43:40 +0000
commitd056a72dce79f6c62055d44707a25c2b5d5c7bde (patch)
tree9c5a9522d87b51fe2cfb132ac3230fe5659ec64f
parentc8e0180e06a9090918e9291f6e70d82113635d00 (diff)
Fixed some return type craq
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2516 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/command_parse.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp
index 9e8a0f9f4..34124e74f 100644
--- a/src/command_parse.cpp
+++ b/src/command_parse.cpp
@@ -518,7 +518,7 @@ void CommandParser::ProcessCommand(userrec *user, char* cmd)
{
if (parameters[0])
{
- items = process_parameters(command_p,parameters);
+ items = this->ProcessParameters(command_p,parameters);
}
else
{
@@ -699,7 +699,7 @@ void CommandParser::ProcessBuffer(const char* cmdbuf,userrec *user)
}
}
-void CommandParser::CreateCommand(char* cmd, handlerfunc f, char flags, int minparams,char* source)
+bool CommandParser::CreateCommand(char* cmd, handlerfunc f, char flags, int minparams,char* source)
{
command_t comm;
/* create the command and push it onto the table */
@@ -712,6 +712,7 @@ void CommandParser::CreateCommand(char* cmd, handlerfunc f, char flags, int minp
comm.total_bytes = 0;
cmdlist.push_back(comm);
log(DEBUG,"Added command %s (%lu parameters)",cmd,(unsigned long)minparams);
+ return true;
}
CommandParser::CommandParser()