mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-31 13:20:04 -04:00
Fixed some return type craq
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2516 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
c8e0180e06
commit
d056a72dce
@ -518,7 +518,7 @@ void CommandParser::ProcessCommand(userrec *user, char* cmd)
|
|||||||
{
|
{
|
||||||
if (parameters[0])
|
if (parameters[0])
|
||||||
{
|
{
|
||||||
items = process_parameters(command_p,parameters);
|
items = this->ProcessParameters(command_p,parameters);
|
||||||
}
|
}
|
||||||
else
|
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;
|
command_t comm;
|
||||||
/* create the command and push it onto the table */
|
/* 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;
|
comm.total_bytes = 0;
|
||||||
cmdlist.push_back(comm);
|
cmdlist.push_back(comm);
|
||||||
log(DEBUG,"Added command %s (%lu parameters)",cmd,(unsigned long)minparams);
|
log(DEBUG,"Added command %s (%lu parameters)",cmd,(unsigned long)minparams);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
CommandParser::CommandParser()
|
CommandParser::CommandParser()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user