From e1f5fc6a0c139eae035d20facb95914642cad50c Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 15 Feb 2012 00:06:25 -0500 Subject: Remove revision numbers as they're only ever set by Config reading git since we've switched off of SVN. Instead just use the hash for the current head when building. Also recheck the hash on every make not just Config. --- src/module.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/module.cpp') diff --git a/src/module.cpp b/src/module.cpp index d3406ec22..8a253042a 100644 --- a/src/module.cpp +++ b/src/module.cpp @@ -84,7 +84,7 @@ void Module::SetAuthor(const Anope::string &nauthor) this->author = nauthor; } -ModuleVersion::ModuleVersion(int vMajor, int vMinor, int vBuild) : Major(vMajor), Minor(vMinor), Build(vBuild) +ModuleVersion::ModuleVersion(int vMajor, int vMinor, int vPatch) : Major(vMajor), Minor(vMinor), Patch(vPatch) { } @@ -102,8 +102,8 @@ int ModuleVersion::GetMinor() const return this->Minor; } -int ModuleVersion::GetBuild() const +int ModuleVersion::GetPatch() const { - return this->Build; + return this->Patch; } -- cgit