]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - include/ctables.h
Shitty include loops
[user/henk/code/inspircd.git] / include / ctables.h
1 /*       +------------------------------------+
2  *       | Inspire Internet Relay Chat Daemon |
3  *       +------------------------------------+
4  *
5  *  Inspire is copyright (C) 2002-2004 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 __CTABLES_H__
18 #define __CTABLES_H__
19
20 #include "inspircd_config.h"
21 #include "inspircd.h"
22 #include "base.h"
23 #include "typedefs.h"
24
25 /** A structure that defines a command
26  */
27 class command_t : public Extensible
28 {
29  public:
30         /** Command name
31         */
32         char command[MAXBUF];
33         /** Handler function as in typedef
34         */
35         handlerfunc *handler_function; 
36         /** User flags needed to execute the command or 0
37          */
38         char flags_needed;
39         /** Minimum number of parameters command takes
40         */
41         int min_params;
42         /** used by /stats m
43          */
44         long use_count;
45         /** used by /stats m
46          */
47         long total_bytes;
48         /** used for resource tracking between modules
49          */
50         char source[MAXBUF];
51 };
52
53 #endif
54