]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - include/command_parse.h
a31716a3a2b2b1a75278592eae22b8d9cf96ccad
[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 void call_handler(std::string &commandname,char **parameters, int pcnt, userrec *user);
26 bool is_valid_cmd(std::string &commandname, int pcnt, userrec * user);
27 int loop_call(handlerfunc fn, char **parameters, int pcnt, userrec *u, int start, int end, int joins);
28 void process_buffer(const char* cmdbuf,userrec *user);
29 bool remove_commands(const char* source);
30
31 #endif