]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/modules.h
Include VERSION/REVISION information in module version tag, so that we do no longer...
[user/henk/code/inspircd.git] / include / modules.h
index ce93f4b16cb84e38a188c074b18b075a3cfe4b02..86f77d2183d19914498e32218f7d42f72907b653 100644 (file)
@@ -277,7 +277,7 @@ class CoreExport Version : public classbase
  public:
        /** Version information.
         */
-       std::string version;
+       const std::string version;
 
        /** Flags and API version
         */
@@ -285,7 +285,8 @@ class CoreExport Version : public classbase
 
        /** Initialize version class
         */
-       Version(const std::string &sversion, int flags, int api_ver);
+       Version(const std::string &customver, int flags,
+               int api_ver = API_VERSION, const std::string& src_rev = VERSION " r" REVISION);
 };
 
 /** The ModuleMessage class is the base class of Request and Event