From f7be9d31e0004f11720da9db858710ff9f3eab5e Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 16 Dec 2005 10:22:16 +0000 Subject: Moved command_parse functions into class CommandParser git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2510 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/command_parse.h | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/command_parse.h b/include/command_parse.h index a31716a3a..80d39af64 100644 --- a/include/command_parse.h +++ b/include/command_parse.h @@ -22,10 +22,15 @@ #include #include "users.h" -void call_handler(std::string &commandname,char **parameters, int pcnt, userrec *user); -bool is_valid_cmd(std::string &commandname, int pcnt, userrec * user); -int loop_call(handlerfunc fn, char **parameters, int pcnt, userrec *u, int start, int end, int joins); -void process_buffer(const char* cmdbuf,userrec *user); -bool remove_commands(const char* source); +class CommandParser +{ + public: + void CallHandler(std::string &commandname,char **parameters, int pcnt, userrec *user); + bool IsValidCommand(std::string &commandname, int pcnt, userrec * user); + int LoopCall(handlerfunc fn, char **parameters, int pcnt, userrec *u, int start, int end, int joins); + void ProcessBuffer(const char* cmdbuf,userrec *user); + bool RemoveCommands(const char* source); + void CommandParser::ProcessCommand(userrec *user, char* cmd); +}; #endif -- cgit v1.2.3