From 80d1296c31d8e16e71f7079144618a3eae6976d1 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 16 Jul 2006 08:38:33 +0000 Subject: 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 --- include/command_parse.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/command_parse.h') 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); }; -- cgit v1.2.3