Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ctables.h

Go to the documentation of this file.
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.3  2003/01/27 00:28:57  brain
00016  ...
00016 
00017  Revision 1.2  2003/01/26 23:52:59  brain
00018  Modified documentation for base classes
00019  Added base classes
00020 
00021  Revision 1.1.1.1  2003/01/23 19:45:58  brain
00022  InspIRCd second source tree
00023 
00024  Revision 1.3  2003/01/15 22:47:44  brain
00025  Changed user and channel structs to classes (finally)
00026 
00027  Revision 1.2  2003/01/09 21:09:50  brain
00028  added '/stats M' command
00029 
00030  Revision 1.1  2003/01/07 01:02:14  brain
00031 
00032  definitions for command table types
00033 
00034 
00035  * ---------------------------------------------------
00036  */
00037 #include "inspircd_config.h"
00038 #include "inspircd.h"
00039 #include "base.h"
00040 
00041 #ifndef __CTABLES_H__
00042 #define __CTABLES_H__
00043 
00044 typedef void (handlerfunc) (char**, int, userrec*);
00045 
00046 /* a structure that defines a command */
00047 
00048 class command_t : public classbase
00049 {
00050  public:
00051         char command[MAXBUF]; /* command name */
00052         handlerfunc *handler_function; /* handler function as in typedef */
00053         char flags_needed; /* user flags needed to execute the command or 0 */
00054         int min_params; /* minimum number of parameters command takes */
00055         long use_count; /* used by /stats m */
00056         long total_bytes; /* used by /stats m */
00057 };
00058 
00059 #endif
00060 

Generated on Mon Jan 27 00:23:10 2003 for InspIRCd by doxygen1.3-rc2