]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/ctables.h
Fix null dereference caused by tracking dummy
[user/henk/code/inspircd.git] / include / ctables.h
index dd83a05a3ca118cd4337e2143cd9ac05b54b2531..0cf4c50d2c65d27a93e96f1ce2708ae5c1308e91 100644 (file)
@@ -58,10 +58,10 @@ struct RouteDescriptor
 {
        /** Routing type from the enum above
         */
-       const RouteType type;
+       RouteType type;
        /** For unicast, the destination server's name
         */
-       const std::string serverdest;
+       std::string serverdest;
 
        /** Create a RouteDescriptor
         */
@@ -90,7 +90,7 @@ class CoreExport Command : public Extensible
  public:
        /** Command name
        */
-       std::string command;
+       const std::string command;
 
        /** Creator module - never NULL */
        Module* const creator;
@@ -211,9 +211,7 @@ class CoreExport Command : public Extensible
                return works_before_reg;
        }
 
-       virtual ~Command()
-       {
-       }
+       virtual ~Command();
 };
 
 /** A hash of commands used by the core