#include <stdarg.h>
#include "socketengine.h"
#include "xline.h"
-#include "bancache.h"
already_sent_t LocalUser::already_sent_id = 0;
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++;
void LocalUser::FullConnect()
{
- ServerInstance->stats->statsConnects++;
+ ServerInstance->stats.Connects++;
this->idle_lastmsg = ServerInstance->Time();
/*
if (MOD_RESULT == MOD_RES_DENY)
{
- ServerInstance->stats->statsCollisions++;
+ ServerInstance->stats.Collisions++;
return false;
}
}
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++;
}