]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - include/ctables.h
5926f3a2a2f76c2926555503f205a564b690d817
[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
24 /** A structure that defines a command
25  */
26 class command_t : public Extensible
27 {
28  public:
29         /** Command name
30         */
31         char command[MAXBUF];
32         /** Handler function as in typedef
33         */
34         handlerfunc *handler_function; 
35         /** User flags needed to execute the command or 0
36          */
37         char flags_needed;
38         /** Minimum number of parameters command takes
39         */
40         int min_params;
41         /** used by /stats m
42          */
43         long use_count;
44         /** used by /stats m
45          */
46         long total_bytes;
47         /** used for resource tracking between modules
48          */
49         char source[MAXBUF];
50 };
51
52 #endif
53