]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_httpd_stats.cpp
...and make it not go querying modules that dont implement the right interface and...
[user/henk/code/inspircd.git] / src / modules / m_httpd_stats.cpp
index 0efe67a270eaa35243e1e561c0caa06b97c06489..a599b4b6bfed3de94cf8c0c026a28be4238fb82f 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
  * See: http://www.inspircd.org/wiki/index.php/Credits
  *
  * This program is free but copyrighted software; see
@@ -105,7 +105,7 @@ class ModuleHttpStats : public Module
                                {
                                        Module* m = ServerInstance->Modules->Find(i->c_str());
                                        Version v = m->GetVersion();
-                                       data << "<module><name>" << *i << "</name><version>" << v.Major << "." <<  v.Minor << "." << v.Revision << "." << v.Build << "</version></module>";
+                                       data << "<module><name>" << *i << "</name><version>" << v.version << "</version></module>";
                                }
                                data << "</modulelist>";
                                data << "<channellist>";
@@ -196,7 +196,7 @@ class ModuleHttpStats : public Module
 
        virtual Version GetVersion()
        {
-               return Version(1, 2, 0, 0, VF_VENDOR, API_VERSION);
+               return Version("$Id$", VF_VENDOR, API_VERSION);
        }
 };