diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/inspircd.h | 1 | ||||
-rw-r--r-- | include/modules.h | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/inspircd.h b/include/inspircd.h index f16a1a40d..92e446e03 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -74,6 +74,7 @@ typedef std::vector< KeyVal > KeyValList; typedef std::multimap< std::string, KeyValList > ConfigDataHash; #include "inspircd_config.h" +#include "inspircd_version.h" #include "numerics.h" #include "uid.h" #include "users.h" diff --git a/include/modules.h b/include/modules.h index ce93f4b16..86f77d218 100644 --- a/include/modules.h +++ b/include/modules.h @@ -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 |