From e6db1df5a657ea0603e1ec0b1ea9b056264d470f Mon Sep 17 00:00:00 2001 From: genius3000 Date: Tue, 10 Apr 2018 10:33:46 -0600 Subject: Change ServerInfo::gecos to description --- src/modules/m_httpd_stats.cpp | 6 +++--- src/modules/m_spanningtree/compat.cpp | 2 +- src/modules/m_spanningtree/protocolinterface.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp index 00cab3197..bc5d53c94 100644 --- a/src/modules/m_httpd_stats.cpp +++ b/src/modules/m_httpd_stats.cpp @@ -97,8 +97,8 @@ class ModuleHttpStats : public Module, public HTTPRequestEventListener if ((http->GetURI() == "/stats") || (http->GetURI() == "/stats/")) { - data << "" << ServerInstance->Config->ServerName << "" - << Sanitize(ServerInstance->Config->ServerDesc) << "" + data << "" << ServerInstance->Config->ServerName << "" + << Sanitize(ServerInstance->Config->ServerDesc) << "" << Sanitize(ServerInstance->GetVersionString()) << ""; data << ""; @@ -211,7 +211,7 @@ class ModuleHttpStats : public Module, public HTTPRequestEventListener data << ""; data << "" << b->servername << ""; data << "" << b->parentname << ""; - data << "" << Sanitize(b->gecos) << ""; + data << "" << Sanitize(b->description) << ""; data << "" << b->usercount << ""; // This is currently not implemented, so, commented out. // data << "" << b->opercount << ""; diff --git a/src/modules/m_spanningtree/compat.cpp b/src/modules/m_spanningtree/compat.cpp index 2436e74f8..98b4be88d 100644 --- a/src/modules/m_spanningtree/compat.cpp +++ b/src/modules/m_spanningtree/compat.cpp @@ -267,7 +267,7 @@ void TreeSocket::WriteLine(const std::string& original_line) } else if (command == "SERVER") { - // :001 SERVER inspircd.test 002 [ ...] :gecos + // :001 SERVER inspircd.test 002 [ ...] :description // A B C std::string::size_type c = line.find(' ', b + 1); if (c == std::string::npos) diff --git a/src/modules/m_spanningtree/protocolinterface.cpp b/src/modules/m_spanningtree/protocolinterface.cpp index be95845a7..b3326581b 100644 --- a/src/modules/m_spanningtree/protocolinterface.cpp +++ b/src/modules/m_spanningtree/protocolinterface.cpp @@ -38,7 +38,7 @@ void SpanningTreeProtocolInterface::GetServerList(ServerList& sl) ps.parentname = s ? s->GetName() : ""; ps.usercount = i->second->UserCount; ps.opercount = i->second->OperCount; - ps.gecos = i->second->GetDesc(); + ps.description = i->second->GetDesc(); ps.latencyms = i->second->rtt; sl.push_back(ps); } -- cgit v1.2.3