00001 /* +------------------------------------+ 00002 * | Inspire Internet Relay Chat Daemon | 00003 * +------------------------------------+ 00004 * 00005 * Inspire is copyright (C) 2002-2003 ChatSpike-Dev. 00006 * E-mail: 00007 * <brain@chatspike.net> 00008 * <Craig@chatspike.net> 00009 * 00010 * Written by Craig Edwards, Craig McLure, and others. 00011 * This program is free but copyrighted software; see 00012 * the file COPYING for details. 00013 * 00014 * --------------------------------------------------- 00015 00016 $Log$ 00016 Revision 1.1 2003/01/26 23:52:48 brain 00016 Modified documentation for base classes 00016 00017 Revision 1.1.1.1 2003/01/23 19:45:58 brain 00018 InspIRCd second source tree 00019 00020 Revision 1.3 2003/01/15 22:47:44 brain 00021 Changed user and channel structs to classes (finally) 00022 00023 Revision 1.2 2003/01/09 21:09:50 brain 00024 added '/stats M' command 00025 00026 Revision 1.1 2003/01/07 01:02:14 brain 00027 00028 definitions for command table types 00029 00030 00031 * --------------------------------------------------- 00032 */ 00033 #include "inspircd_config.h" 00034 #include "inspircd.h" 00035 #include "base.h" 00036 00037 #ifndef __CTABLES_H__ 00038 #define __CTABLES_H__ 00039 00040 typedef void (handlerfunc) (char**, int, userrec*); 00041 00042 /* a structure that defines a command */ 00043 00044 class command_t : public classbase 00045 { 00046 public: 00047 char command[MAXBUF]; /* command name */ 00048 handlerfunc *handler_function; /* handler function as in typedef */ 00049 char flags_needed; /* user flags needed to execute the command or 0 */ 00050 int min_params; /* minimum number of parameters command takes */ 00051 long use_count; /* used by /stats m */ 00052 long total_bytes; /* used by /stats m */ 00053 }; 00054 00055 #endif 00056