aboutsummaryrefslogtreecommitdiffstats
path: root/src/stats.cpp
diff options
context:
space:
mode:
authorGravatar Daniel De Graaf2010-03-04 17:02:32 -0600
committerGravatar Daniel De Graaf2010-08-03 17:32:39 -0400
commit1ada28ab2218d5e0b2f9505e81625a352a175f7d (patch)
tree768fa3061ca30ed9ee3b3ce9d3cb2b55ce20677d /src/stats.cpp
parentAllow <oper:classes> to specify classes in addition to <type:classes> (diff)
Change connect class inheritance to use references, allows conn_umode and conn_join to inherit
Diffstat (limited to 'src/stats.cpp')
-rw-r--r--src/stats.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/stats.cpp b/src/stats.cpp
index 2d5b7aaa7..f62b0ae4a 100644
--- a/src/stats.cpp
+++ b/src/stats.cpp
@@ -82,8 +82,8 @@ void InspIRCd::DoStats(char statschar, User* user, string_list &results)
res << ' ' << c->config->getString("port", "*") << ' ';
- res << c->GetRecvqMax() << ' ' << c->GetSendqSoftMax() << ' ' << c->GetSendqHardMax()
- << ' ' << c->GetCommandRate() << ' ' << c->GetPenaltyThreshold();
+ res << c->recvqmax << ' ' << c->softsendqmax << ' ' << c->hardsendqmax
+ << ' ' << c->commandrate << ' ' << c->penaltythreshold;
if (c->fakelag)
res << '*';
results.push_back(res.str());
@@ -97,9 +97,9 @@ void InspIRCd::DoStats(char statschar, User* user, string_list &results)
for (ClassVector::iterator i = this->Config->Classes.begin(); i != this->Config->Classes.end(); i++)
{
ConnectClass* c = *i;
- results.push_back(sn+" 215 "+user->nick+" i NOMATCH * "+c->GetHost()+" "+ConvToStr(c->limit ? c->limit : this->SE->GetMaxFds())+" "+ConvToStr(idx)+" "+this->Config->ServerName+" *");
- results.push_back(sn+" 218 "+user->nick+" Y "+ConvToStr(idx)+" "+ConvToStr(c->GetPingTime())+" 0 "+ConvToStr(c->GetSendqHardMax())+" :"+
- ConvToStr(c->GetRecvqMax())+" "+ConvToStr(c->GetRegTimeout()));
+ results.push_back(sn+" 215 "+user->nick+" i NOMATCH * "+c->host+" "+ConvToStr(c->limit ? c->limit : this->SE->GetMaxFds())+" "+ConvToStr(idx)+" "+this->Config->ServerName+" *");
+ results.push_back(sn+" 218 "+user->nick+" Y "+ConvToStr(idx)+" "+ConvToStr(c->pingtime)+" 0 "+ConvToStr(c->hardsendqmax)+" :"+
+ ConvToStr(c->recvqmax)+" "+ConvToStr(c->registration_timeout));
idx++;
}
}