]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - include/command_parse.h
80d39af64720a5a12b1cf5295a5faa755292e295
[user/henk/code/inspircd.git] / include / command_parse.h
1 /*       +------------------------------------+
2  *       | Inspire Internet Relay Chat Daemon |
3  *       +------------------------------------+
4  *
5  *  Inspire is copyright (C) 2002-2005 ChatSpike-Dev.
6  *                       E-mail:
7  *                <brain@chatspike.net>
8  *                <Craig@chatspike.net>
9  *
10  * Written by Craig Edwards, Craig McLure, and others.
11  * This program is free but copyrighted software; see
12  *            the file COPYING for details.
13  *
14  * ---------------------------------------------------
15  */
16
17 #ifndef __COMMAND_PARSE_H
18 #define __COMMAND_PARSE_H
19
20 #include <typeinfo>
21 #include <iostream>
22 #include <string>
23 #include "users.h"
24  
25 class CommandParser
26 {
27  public:
28         void CallHandler(std::string &commandname,char **parameters, int pcnt, userrec *user);
29         bool IsValidCommand(std::string &commandname, int pcnt, userrec * user);
30         int LoopCall(handlerfunc fn, char **parameters, int pcnt, userrec *u, int start, int end, int joins);
31         void ProcessBuffer(const char* cmdbuf,userrec *user);
32         bool RemoveCommands(const char* source);
33         void CommandParser::ProcessCommand(userrec *user, char* cmd);
34 };
35
36 #endif