From f9636a2eff46f6829bf9e01c711ab1ba45a7d50a Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 10 Aug 2006 22:40:57 +0000 Subject: So much stuff changed in this one, i forgot most of it. Oh yeah, main thing is ModeHandler and ModeWatcher classes now take an InspIRCd* to their constructor git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4858 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/command_parse.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include/command_parse.h') diff --git a/include/command_parse.h b/include/command_parse.h index 800f2beeb..d00cdd058 100644 --- a/include/command_parse.h +++ b/include/command_parse.h @@ -23,17 +23,21 @@ #include "users.h" #include "ctables.h" #include "typedefs.h" - + +class InspIRCd; + class CommandParser : public classbase { private: + InspIRCd* ServerInstance; + int ProcessParameters(char **command_p,char *parameters); void ProcessCommand(userrec *user, std::string &cmd); void SetupCommandTable(); public: command_table cmdlist; - CommandParser(); + CommandParser(InspIRCd* Instance); bool CallHandler(const std::string &commandname,const char** parameters, int pcnt, userrec *user); bool IsValidCommand(const std::string &commandname, int pcnt, userrec * user); int LoopCall(userrec* user, command_t* CommandObj, const char** parameters, int pcnt, unsigned int splithere, unsigned int extra); -- cgit v1.2.3