From 4b0f6c610f755e0cb93843d5a2a6c70336eafe39 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 1 Oct 2006 14:59:38 +0000 Subject: Now with binary versioning goodness git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5366 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules.cpp') diff --git a/src/modules.cpp b/src/modules.cpp index 2b62ba382..6d6b39d87 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -27,8 +27,8 @@ #include "inspircd.h" // version is a simple class for holding a modules version number -Version::Version(int major, int minor, int revision, int build, int flags) -: Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) +Version::Version(int major, int minor, int revision, int build, int flags, int api_ver) +: Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags), API(api_ver) { } @@ -116,7 +116,7 @@ void Module::OnRehash(const std::string ¶meter) { } void Module::OnServerRaw(std::string &raw, bool inbound, userrec* user) { } int Module::OnUserPreJoin(userrec* user, chanrec* chan, const char* cname, std::string &privs) { return 0; } void Module::OnMode(userrec* user, void* dest, int target_type, const std::string &text) { }; -Version Module::GetVersion() { return Version(1,0,0,0,VF_VENDOR); } +Version Module::GetVersion() { return Version(1,0,0,0,VF_VENDOR,-1); } void Module::OnOper(userrec* user, const std::string &opertype) { }; void Module::OnPostOper(userrec* user, const std::string &opertype) { }; void Module::OnInfo(userrec* user) { }; -- cgit v1.2.3