summaryrefslogtreecommitdiff
path: root/include/command_parse.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-16 08:38:33 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-16 08:38:33 +0000
commit80d1296c31d8e16e71f7079144618a3eae6976d1 (patch)
tree91242c8abfe0773976b494811caf3b3339f970c8 /include/command_parse.h
parent8ce25663a976c65d383357b924fd3f1944a44811 (diff)
MAJOR tidy of line parser, some parts rewritten and major chunks removed
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4402 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/command_parse.h')
-rw-r--r--include/command_parse.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/command_parse.h b/include/command_parse.h
index 838915dff..44f5946bc 100644
--- a/include/command_parse.h
+++ b/include/command_parse.h
@@ -28,7 +28,7 @@ class CommandParser : public classbase
{
private:
int ProcessParameters(char **command_p,char *parameters);
- void ProcessCommand(userrec *user, char* cmd);
+ void ProcessCommand(userrec *user, std::string &cmd);
void SetupCommandTable();
public:
command_table cmdlist;
@@ -37,7 +37,7 @@ class CommandParser : public classbase
bool CallHandler(const std::string &commandname,char **parameters, int pcnt, userrec *user);
bool IsValidCommand(const std::string &commandname, int pcnt, userrec * user);
int LoopCall(command_t *fn, char **parameters, int pcnt, userrec *u, int start, int end, int joins);
- void ProcessBuffer(const char* cmdbuf,userrec *user);
+ void ProcessBuffer(std::string &buffer,userrec *user);
bool RemoveCommands(const char* source);
bool CreateCommand(command_t *f);
};