summaryrefslogtreecommitdiff
path: root/include/modules.h
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-25 20:35:51 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-25 20:35:51 +0000
commit8de87c2a9b5f5e68caac1ca06b1021ed69cb3d6a (patch)
tree976f90c27673acbfead92363c964ae69d7a2cb67 /include/modules.h
parent31b232eec07d0b85ce2cc7c4ebc5d5387f781dcb (diff)
Change module versions to use a string instead of fixed digits, and use propset ID to auto-set versions, so we don't have (essentially unused) module versions.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10291 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/modules.h')
-rw-r--r--include/modules.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/include/modules.h b/include/modules.h
index 3aa7a94ac..e9ada30ff 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -251,13 +251,17 @@ do { \
class CoreExport Version : public classbase
{
public:
- /** Version numbers, build number, flags and API version
- */
- const int Major, Minor, Revision, Build, Flags, API;
+ /** Version information.
+ */
+ std::string version;
+
+ /** Flags and API version
+ */
+ const int Flags, API;
- /** Initialize version class
- */
- Version(int major, int minor, int revision, int build, int flags, int api_ver);
+ /** Initialize version class
+ */
+ Version(const std::string &sversion, int flags, int api_ver);
};
/** The ModuleMessage class is the base class of Request and Event