typedef std::multimap< std::string, KeyValList > ConfigDataHash;
#include "inspircd_config.h"
+#include "inspircd_version.h"
#include "numerics.h"
#include "uid.h"
#include "users.h"
public:
/** Version information.
*/
- std::string version;
+ const std::string version;
/** Flags and API version
*/
/** 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
while (<$in>) {
if (/^\s*#\s*include\s*"([^"]+)"/) {
my $inc = $1;
+ next if $inc eq 'inspircd_version.h' && $f eq '../include/inspircd.h';
my $found = 0;
for my $loc ("$basedir/$inc", "../include/$inc") {
next unless -e $loc;
// version is a simple class for holding a modules version number
-Version::Version(const std::string &sversion, int flags, int api_ver)
-: version(sversion), Flags(flags), API(api_ver)
+Version::Version(const std::string &modv, int flags, int api_ver, const std::string& rev)
+: version(modv + " " + rev), Flags(flags), API(api_ver)
{
}