diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-24 16:04:09 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-24 16:04:09 +0000 |
commit | acee8cf888afa47e2dbf94c69e6d875bebcfd417 (patch) | |
tree | ccccdcc4a7276372391ca1df4ef5b3a22827e40d /src/commands | |
parent | 5b329bf110e03c75141a2e21320ee8c250a67b46 (diff) |
Whoops forgot this
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8345 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/cmd_stats.cpp | 8 |
1 files 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++; } } |