]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/users.cpp
Pull in bancache.h from inspircd.h
[user/henk/code/inspircd.git] / src / users.cpp
index 6e9e8202e811490534b5498f2f289b365bdce5c8..7fba57faa8b59b5825ea6dc40398c4633f1dedd3 100644 (file)
@@ -27,7 +27,6 @@
 #include <stdarg.h>
 #include "socketengine.h"
 #include "xline.h"
-#include "bancache.h"
 
 already_sent_t LocalUser::already_sent_id = 0;
 
@@ -285,7 +284,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 +539,7 @@ bool LocalUser::CheckLines(bool doZline)
 
 void LocalUser::FullConnect()
 {
-       ServerInstance->stats->statsConnects++;
+       ServerInstance->stats.Connects++;
        this->idle_lastmsg = ServerInstance->Time();
 
        /*
@@ -629,7 +628,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 +836,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++;
 }