]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - include/ctables.h
e422e166144c52afaa4852f4f6e139c4a8a13723
[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         char command[MAXBUF]; /* command name */
31         handlerfunc *handler_function; /* handler function as in typedef */
32         char flags_needed; /* user flags needed to execute the command or 0 */
33         int min_params; /* minimum number of parameters command takes */
34         long use_count; /* used by /stats m */
35         long total_bytes; /* used by /stats m */
36 };
37
38 #endif
39