summaryrefslogtreecommitdiff
path: root/src/modules.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-01-14 18:17:08 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-01-14 18:17:08 +0000
commit601d67fd5f5a9e430a59a1930382eae67eb39fb4 (patch)
tree7dd07ff306540097f70b6689feca83f60ac002a5 /src/modules.cpp
parent7866c42d8f80723d07cf38ed9413857164b55e00 (diff)
Move revision information from Version object to a static symbol
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12256 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 46582fc79..f460a6a28 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -26,11 +26,17 @@
// Version is a simple class for holding a modules version number
template<>
-VersionBase<API_VERSION>::VersionBase(const std::string &modv, int flags, const std::string& rev)
-: description(modv), version(rev), Flags(flags)
+VersionBase<API_VERSION>::VersionBase(const std::string &modv, int flags)
+: description(modv), Flags(flags)
{
}
+template<>
+bool VersionBase<API_VERSION>::CanLink(const std::string& other_data)
+{
+ return link_data == other_data;
+}
+
Request::Request(Module* src, Module* dst, const char* idstr)
: id(idstr), source(src), dest(dst)
{