X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_httpd_stats.cpp;h=a682cd14c71b50a5019e76c6d173668283f02161;hb=e071bd88391e00e4d3b0104ada985e08a9eb3210;hp=36deda11b5bb98e4e8a13ae7e3dbc18fb9d5b484;hpb=55b81f917cd313a8814d3364048af0036b41a2ca;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp index 36deda11b..a682cd14c 100644 --- a/src/modules/m_httpd_stats.cpp +++ b/src/modules/m_httpd_stats.cpp @@ -2,7 +2,7 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2009 InspIRCd Development Team + * InspIRCd: (C) 2002-2010 InspIRCd Development Team * See: http://wiki.inspircd.org/Credits * * This program is free but copyrighted software; see @@ -21,20 +21,10 @@ class ModuleHttpStats : public Module { static std::map const &entities; - std::string stylesheet; - bool changed; public: - void ReadConfig() - { - ConfigReader c; - this->stylesheet = c.ReadValue("httpstats", "stylesheet", 0); - } - ModuleHttpStats() { - ReadConfig(); - this->changed = true; Implementation eventlist[] = { I_OnEvent }; ServerInstance->Modules->Attach(eventlist, this, 1); } @@ -75,9 +65,9 @@ class ModuleHttpStats : public Module ExtensionItem* item = i->first; std::string value = item->serialize(FORMAT_USER, ext, i->second); if (!value.empty()) - data << "key << "\">" << Sanitize(value) << ""; - else if (!item->key.empty()) - data << "key << "\"/>"; + data << "name << "\">" << Sanitize(value) << ""; + else if (!item->name.empty()) + data << "name << "\"/>"; } data << ""; } @@ -135,7 +125,7 @@ class ModuleHttpStats : public Module { Module* m = ServerInstance->Modules->Find(i->c_str()); Version v = m->GetVersion(); - data << "" << *i << "" << v.version << "" << Sanitize(v.description) << ""; + data << "" << *i << "" << Sanitize(v.description) << ""; } data << "";