/** 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
long use_count;
/** used by /stats m
*/
- long total_bytes;
+ float total_bytes;
/** used for resource tracking between modules
*/
std::string source;
*/
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 = "";
}