*/
const std::string& GetName() const { return name; }
- /** Returns the description (GECOS) of this server
+ /** Returns the description of this server
* @return The description of this server
*/
const std::string& GetDesc() const { return description; }
if ((http->GetURI() == "/stats") || (http->GetURI() == "/stats/"))
{
- data << "<inspircdstats><server><name>" << ServerInstance->Config->ServerName << "</name><gecos>"
- << Sanitize(ServerInstance->Config->ServerDesc) << "</gecos><version>"
+ data << "<inspircdstats><server><name>" << ServerInstance->Config->ServerName << "</name><description>"
+ << Sanitize(ServerInstance->Config->ServerDesc) << "</description><version>"
<< Sanitize(ServerInstance->GetVersionString()) << "</version></server>";
data << "<general>";
data << "<server>";
data << "<servername>" << b->servername << "</servername>";
data << "<parentname>" << b->parentname << "</parentname>";
- data << "<gecos>" << Sanitize(b->gecos) << "</gecos>";
+ data << "<description>" << Sanitize(b->description) << "</description>";
data << "<usercount>" << b->usercount << "</usercount>";
// This is currently not implemented, so, commented out.
// data << "<opercount>" << b->opercount << "</opercount>";
}
else if (command == "SERVER")
{
- // :001 SERVER inspircd.test 002 [<anything> ...] :gecos
+ // :001 SERVER inspircd.test 002 [<anything> ...] :description
// A B C
std::string::size_type c = line.find(' ', b + 1);
if (c == std::string::npos)
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);
}