]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - include/ctables.h
Q-lines fully working, can add and remove other types of ban (but not enforced yet)
[user/henk/code/inspircd.git] / include / ctables.h
1 /*       +------------------------------------+
2  *       | Inspire Internet Relay Chat Daemon |
3  *       +------------------------------------+
4  *
5  *  Inspire is copyright (C) 2002-2003 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 #include "inspircd_config.h"
17 #include "inspircd.h"
18 #include "base.h"
19
20 #ifndef __CTABLES_H__
21 #define __CTABLES_H__
22
23 /** A structure that defines a command
24  */
25 class command_t : public classbase
26 {
27  public:
28         /** Command name
29         */
30         char command[MAXBUF];
31         /** Handler function as in typedef
32         */
33         handlerfunc *handler_function; 
34         /** User flags needed to execute the command or 0
35          */
36         char flags_needed;
37         /** Minimum number of parameters command takes
38         */
39         int min_params;
40         /** used by /stats m
41          */
42         long use_count;
43         /** used by /stats m
44          */
45         long total_bytes;
46 };
47
48 #endif
49