X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_httpd_stats.cpp;h=b40c44d120067fdf38cca0c41b42ecec80c1ad4d;hb=3151d60c1ecc9462e4c335282ee6c31672f45111;hp=3be8ec9703562225257e496016a01a5a81d964ac;hpb=a7fc2fe0dc845ffba1f4575e694aa1bb7f60756b;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp index 3be8ec970..b40c44d12 100644 --- a/src/modules/m_httpd_stats.cpp +++ b/src/modules/m_httpd_stats.cpp @@ -1,11 +1,19 @@ /* * InspIRCd -- Internet Relay Chat Daemon * + * Copyright (C) 2019 linuxdaemon + * Copyright (C) 2018 Matt Schatz + * Copyright (C) 2016 Johanna A + * Copyright (C) 2013-2016 Attila Molnar + * Copyright (C) 2013, 2017, 2019 Sadie Powell + * Copyright (C) 2012 Robby + * Copyright (C) 2009 Uli Schlachter * Copyright (C) 2009 Daniel De Graaf - * Copyright (C) 2007-2008 Robin Burchell + * Copyright (C) 2008-2009 Robin Burchell * Copyright (C) 2008 Pippijn van Steenhoven - * Copyright (C) 2006-2008 Craig Edwards + * Copyright (C) 2007 John Brooks * Copyright (C) 2007 Dennis Friis + * Copyright (C) 2006-2008, 2010 Craig Edwards * * This file is part of InspIRCd. InspIRCd is free software: you can * redistribute it and/or modify it under the terms of the GNU General Public @@ -86,7 +94,7 @@ namespace Stats for (Extensible::ExtensibleStore::const_iterator i = ext->GetExtList().begin(); i != ext->GetExtList().end(); i++) { ExtensionItem* item = i->first; - std::string value = item->serialize(FORMAT_USER, ext, i->second); + std::string value = item->ToHuman(ext, i->second); if (!value.empty()) data << "name << "\">" << Sanitize(value) << ""; else if (!item->name.empty()) @@ -477,7 +485,7 @@ class ModuleHttpStats : public Module, public HTTPRequestEventListener Version GetVersion() CXX11_OVERRIDE { - return Version("Provides statistics over HTTP via m_httpd", VF_VENDOR); + return Version("Provides XML-serialised statistics about the server, channels, and users over HTTP via the /stats path.", VF_VENDOR); } };