]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/ctables.h
Comments :)
[user/henk/code/inspircd.git] / include / ctables.h
index 9eae05257b5f4ae8c0325637fff1627f4ec205ee..e8a3337fd2b6e23959ff7988931a7835bd2cd9ac 100644 (file)
@@ -19,6 +19,7 @@
 #include "hash_map.h"
 #include "base.h"
 
+/* Forward declarations - required */
 class userrec;
 class InspIRCd;
 
@@ -29,10 +30,10 @@ enum CmdResult
        CMD_FAILURE = 0,        /* Command exists, but failed */
        CMD_SUCCESS = 1,        /* Command exists, and succeeded */
        CMD_INVALID = 2,        /* Command doesnt exist at all! */
-       CMD_USER_DELETED = 3,   /* User was deleted! */
+       CMD_USER_DELETED = 3    /* User was deleted - DEPRECIATED */
 };
 
-/* For commands which should not be replicated to other
+/** For commands which should not be replicated to other
  * servers, we usually return CMD_FAILURE. this isnt readable,
  * so we define this alias for CMD_FAILURE called
  * CMD_LOCALONLY, which of course does the same thing but is
@@ -44,7 +45,7 @@ enum CmdResult
 /** A structure that defines a command. Every command available
  * in InspIRCd must be defined as derived from command_t.
  */
-class command_t : public Extensible
+class CoreExport command_t : public Extensible
 {
  protected:
        /** Owner/Creator object
@@ -65,7 +66,7 @@ class command_t : public Extensible
        long use_count;
        /** used by /stats m
         */
-       long total_bytes;
+       float total_bytes;
        /** used for resource tracking between modules
         */
        std::string source;
@@ -92,7 +93,8 @@ class command_t : public Extensible
         */
        command_t(InspIRCd* Instance, const std::string &cmd, char flags, int minpara, int before_reg = false) : ServerInstance(Instance), command(cmd), flags_needed(flags), min_params(minpara), disabled(false), works_before_reg(before_reg)
        {
-               use_count = total_bytes = 0;
+               use_count = 0;
+               total_bytes = 0;
                source = "<core>";
                syntax = "";
        }