]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
m_httpd_stats Fix pointer being shown instead of server name in <user>
authorAttila Molnar <attilamolnar@hush.com>
Thu, 12 Feb 2015 15:22:06 +0000 (16:22 +0100)
committerAttila Molnar <attilamolnar@hush.com>
Thu, 12 Feb 2015 15:22:06 +0000 (16:22 +0100)
src/modules/m_httpd_stats.cpp

index 30eacd7a725915b70ee5fec84600ac6b24ec18bd..ae65f0692fe10ef8203dde48f05ff532c9661e13 100644 (file)
@@ -189,7 +189,7 @@ class ModuleHttpStats : public Module
                                        data << "<user>";
                                        data << "<nickname>" << u->nick << "</nickname><uuid>" << u->uuid << "</uuid><realhost>"
                                                << u->host << "</realhost><displayhost>" << u->dhost << "</displayhost><gecos>"
-                                               << Sanitize(u->fullname) << "</gecos><server>" << u->server << "</server>";
+                                               << Sanitize(u->fullname) << "</gecos><server>" << u->server->GetName() << "</server>";
                                        if (u->IsAway())
                                                data << "<away>" << Sanitize(u->awaymsg) << "</away><awaytime>" << u->awaytime << "</awaytime>";
                                        if (u->IsOper())