diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-06-13 15:03:56 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-06-13 15:03:56 +0200 |
commit | 12027601cf4422366b0cef632ff0158c9410cc9a (patch) | |
tree | fa259bed522394e1acd2bf1ef34ae6610fda2ffe /src/users.cpp | |
parent | c7759c765cdd3eb086daedd3222d2d8d67791147 (diff) |
Change allocation of InspIRCd::stats to be physically part of the object containing it
While at it, remove "stats" from all field names
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/users.cpp b/src/users.cpp index 6e9e8202e..4acf80395 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -285,7 +285,7 @@ eol_found: recvq = recvq.substr(qpos); // TODO should this be moved to when it was inserted in recvq? - ServerInstance->stats->statsRecv += qpos; + ServerInstance->stats.Recv += qpos; user->bytes_in += qpos; user->cmds_in++; @@ -540,7 +540,7 @@ bool LocalUser::CheckLines(bool doZline) void LocalUser::FullConnect() { - ServerInstance->stats->statsConnects++; + ServerInstance->stats.Connects++; this->idle_lastmsg = ServerInstance->Time(); /* @@ -629,7 +629,7 @@ bool User::ChangeNick(const std::string& newnick, bool force, time_t newts) if (MOD_RESULT == MOD_RES_DENY) { - ServerInstance->stats->statsCollisions++; + ServerInstance->stats.Collisions++; return false; } } @@ -837,7 +837,7 @@ void LocalUser::Write(const std::string& text) eh.AddWriteBuf(text); eh.AddWriteBuf(wide_newline); - ServerInstance->stats->statsSent += text.length() + 2; + ServerInstance->stats.Sent += text.length() + 2; this->bytes_out += text.length() + 2; this->cmds_out++; } |