]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - include/ctables.h
Added some netsplit handling stuff (untested)
[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 typedef void (handlerfunc) (char**, int, userrec*);
24
25 /** A structure that defines a command
26  */
27 class command_t : public classbase
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 };
49
50 #endif
51