1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * Inspire is copyright (C) 2002-2003 ChatSpike-Dev.
7 * <brain@chatspike.net>
8 * <Craig@chatspike.net>
10 * Written by Craig Edwards, Craig McLure, and others.
11 * This program is free but copyrighted software; see
12 * the file COPYING for details.
14 * ---------------------------------------------------
17 Revision 1.1 2003/01/23 19:45:58 brain
20 Revision 1.3 2003/01/15 22:47:44 brain
21 Changed user and channel structs to classes (finally)
23 Revision 1.2 2003/01/09 21:09:50 brain
24 added '/stats M' command
26 Revision 1.1 2003/01/07 01:02:14 brain
28 definitions for command table types
31 * ---------------------------------------------------
33 #include "inspircd_config.h"
39 typedef void (handlerfunc) (char**, int, userrec*);
41 /* a structure that defines a command */
44 char command[MAXBUF]; /* command name */
45 handlerfunc *handler_function; /* handler function as in typedef */
46 char flags_needed; /* user flags needed to execute the command or 0 */
47 int min_params; /* minimum number of parameters command takes */
48 long use_count; /* used by /stats m */
49 long total_bytes; /* used by /stats m */