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
30 int ProcessParameters(char **command_p,char *parameters);
31 void ProcessCommand(userrec *user, char* cmd);
32 void SetupCommandTable();
34 command_table cmdlist;
37 bool CallHandler(std::string &commandname,char **parameters, int pcnt, userrec *user);
38 bool IsValidCommand(std::string &commandname, int pcnt, userrec * user);
39 int LoopCall(command_t *fn, char **parameters, int pcnt, userrec *u, int start, int end, int joins);
40 void ProcessBuffer(const char* cmdbuf,userrec *user);
41 bool RemoveCommands(const char* source);
42 bool CreateCommand(command_t *f);