]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - include/ctables.h
...
[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  $Log$
17  Revision 1.2  2003/01/26 23:52:59  brain
18  Modified documentation for base classes
19  Added base classes
20
21  Revision 1.1.1.1  2003/01/23 19:45:58  brain
22  InspIRCd second source tree
23
24  Revision 1.3  2003/01/15 22:47:44  brain
25  Changed user and channel structs to classes (finally)
26
27  Revision 1.2  2003/01/09 21:09:50  brain
28  added '/stats M' command
29
30  Revision 1.1  2003/01/07 01:02:14  brain
31
32  definitions for command table types
33
34
35  * ---------------------------------------------------
36  */
37 #include "inspircd_config.h"
38 #include "inspircd.h"
39 #include "base.h"
40
41 #ifndef __CTABLES_H__
42 #define __CTABLES_H__
43
44 typedef void (handlerfunc) (char**, int, userrec*);
45
46 /* a structure that defines a command */
47
48 class command_t : public classbase
49 {
50  public:
51         char command[MAXBUF]; /* command name */
52         handlerfunc *handler_function; /* handler function as in typedef */
53         char flags_needed; /* user flags needed to execute the command or 0 */
54         int min_params; /* minimum number of parameters command takes */
55         long use_count; /* used by /stats m */
56         long total_bytes; /* used by /stats m */
57 };
58
59 #endif
60