]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/ctables.h
Documentation update, 09/02/03
[user/henk/code/inspircd.git] / include / ctables.h
index 78eb150d94380d5a63968668bcffa0cb07c39579..5ca5e13b395dda8e37b899f9f5391bcc556c5727 100644 (file)
  * This program is free but copyrighted software; see
  *            the file COPYING for details.
  *
- * ---------------------------------------------------
- $Log$
- Revision 1.1  2003/01/23 19:45:58  brain
- Initial revision
-
- Revision 1.3  2003/01/15 22:47:44  brain
- Changed user and channel structs to classes (finally)
-
- Revision 1.2  2003/01/09 21:09:50  brain
- added '/stats M' command
-
- Revision 1.1  2003/01/07 01:02:14  brain
-
- definitions for command table types
-
-
  * ---------------------------------------------------
  */
 #include "inspircd_config.h"
 #include "inspircd.h"
+#include "base.h"
 
 #ifndef __CTABLES_H__
 #define __CTABLES_H__
 
 typedef void (handlerfunc) (char**, int, userrec*);
 
-/* a structure that defines a command */
-
-struct command_t {
-       char command[MAXBUF]; /* command name */
-       handlerfunc *handler_function; /* handler function as in typedef */
-       char flags_needed; /* user flags needed to execute the command or 0 */
-       int min_params; /* minimum number of parameters command takes */
-       long use_count; /* used by /stats m */
-       long total_bytes; /* used by /stats m */
+/** A structure that defines a command
+ */
+class command_t : public classbase
+{
+ public:
+    /** Command name
+     */
+       char command[MAXBUF];
+       /** Handler function as in typedef
+     */
+       handlerfunc *handler_function; 
+       /** User flags needed to execute the command or 0
+        */
+       char flags_needed;
+    /** Minimum number of parameters command takes
+     */
+       int min_params;
+       /** used by /stats m
+        */
+       long use_count;
+       /** used by /stats m
+        */
+       long total_bytes;
 };
 
 #endif