diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-09-27 21:20:56 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-09-27 21:20:56 +0000 |
commit | f572827157397e493e5499f115b15d0de992480a (patch) | |
tree | 8fb49c5ed90d01458a138d0ce582493c94e56219 /src/module.cpp | |
parent | 9d87b0f9235458169b513904ce4e220da4e29d73 (diff) |
Removed old mod_version system for detecting module versions and replaced with the Module::GetVersion() function
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2521 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/module.cpp')
-rw-r--r-- | src/module.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/module.cpp b/src/module.cpp index 463a083c7..888087d85 100644 --- a/src/module.cpp +++ b/src/module.cpp @@ -166,3 +166,26 @@ void Module::SetAuthor(const std::string &nauthor) { this->author = nauthor; } + +Version::Version(unsigned vMajor, unsigned vMinor, unsigned vBuild) : Major(vMajor), Minor(vMinor), Build(vBuild) +{ +} + +Version::~Version() +{ +} + +const unsigned Version::GetMajor() +{ + return Major; +} + +const unsigned Version::GetMinor() +{ + return Minor; +} + +const unsigned Version::GetBuild() +{ + return Build; +}
\ No newline at end of file |