diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-16 10:22:16 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-16 10:22:16 +0000 |
commit | f7be9d31e0004f11720da9db858710ff9f3eab5e (patch) | |
tree | e281877504771104c1d677575ae7accd818e5add /include | |
parent | 3f0f99d3ef49dde2e40c624614f77d3e99335455 (diff) |
Moved command_parse functions into class CommandParser
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2510 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r-- | include/command_parse.h | 15 |
1 files changed, 10 insertions, 5 deletions
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 <string> #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 |