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 * ---------------------------------------------------
16 #include "inspircd_config.h"
23 typedef void (handlerfunc) (char**, int, userrec*);
25 /* a structure that defines a command */
27 class command_t : public classbase
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 */