From acee8cf888afa47e2dbf94c69e6d875bebcfd417 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 24 Oct 2007 16:04:09 +0000 Subject: Whoops forgot this git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8345 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands/cmd_stats.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/commands/cmd_stats.cpp b/src/commands/cmd_stats.cpp index fb2e32232..73b68dabe 100644 --- a/src/commands/cmd_stats.cpp +++ b/src/commands/cmd_stats.cpp @@ -92,7 +92,8 @@ DllExport void DoStats(InspIRCd* ServerInstance, char statschar, User* user, str int idx = 0; for (ClassVector::iterator i = ServerInstance->Config->Classes.begin(); i != ServerInstance->Config->Classes.end(); i++) { - results.push_back(sn+" 215 "+user->nick+" I NOMATCH * "+i->GetHost()+" "+ConvToStr(MAXCLIENTS)+" "+ConvToStr(idx)+" "+ServerInstance->Config->ServerName+" *"); + ConnectClass* c = *i; + results.push_back(sn+" 215 "+user->nick+" I NOMATCH * "+c->GetHost()+" "+ConvToStr(MAXCLIENTS)+" "+ConvToStr(idx)+" "+ServerInstance->Config->ServerName+" *"); idx++; } } @@ -103,8 +104,9 @@ DllExport void DoStats(InspIRCd* ServerInstance, char statschar, User* user, str int idx = 0; for (ClassVector::iterator i = ServerInstance->Config->Classes.begin(); i != ServerInstance->Config->Classes.end(); i++) { - results.push_back(sn+" 218 "+user->nick+" Y "+ConvToStr(idx)+" "+ConvToStr(i->GetPingTime())+" 0 "+ConvToStr(i->GetSendqMax())+" :"+ - ConvToStr(i->GetFlood())+" "+ConvToStr(i->GetRegTimeout())); + ConnectClass* c = *i; + results.push_back(sn+" 218 "+user->nick+" Y "+ConvToStr(idx)+" "+ConvToStr(c->GetPingTime())+" 0 "+ConvToStr(c->GetSendqMax())+" :"+ + ConvToStr(c->GetFlood())+" "+ConvToStr(c->GetRegTimeout())); idx++; } } -- cgit v1.2.3