1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
7 * <brain@chatspike.net>
8 * <Craig@chatspike.net>
10 * Written by Craig Edwards, Craig McLure, and others.
11 * This program is free but copyrighted software; see
12 * the file COPYING for details.
14 * ---------------------------------------------------
17 #ifndef __COMMAND_PARSE_H
18 #define __COMMAND_PARSE_H
27 class CommandParser : public classbase
30 int ProcessParameters(char **command_p,char *parameters);
31 void ProcessCommand(userrec *user, std::string &cmd);
32 void SetupCommandTable();
34 command_table cmdlist;
37 bool CallHandler(const std::string &commandname,const char** parameters, int pcnt, userrec *user);
38 bool IsValidCommand(const std::string &commandname, int pcnt, userrec * user);
39 int LoopCall(userrec* user, command_t* CommandObj, const char** parameters, int pcnt, unsigned int splithere, unsigned int extra);
40 int LoopCall(userrec* user, command_t* CommandObj, const char** parameters, int pcnt, unsigned int splithere);
41 void ProcessBuffer(std::string &buffer,userrec *user);
42 bool RemoveCommands(const char* source);
43 bool CreateCommand(command_t *f);