mirror of
https://github.com/znc/znc.git
synced 2026-08-06 17:03:14 +02:00
Keep the traffic stats more up-to-date (/msg *status traffic)
This now also adds the traffic caused by webadmin, schat and dcc bouncing to the stats. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1183 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -57,6 +57,8 @@ public:
|
||||
EnableReadLine();
|
||||
}
|
||||
|
||||
~CSChatSock();
|
||||
|
||||
virtual Csock *GetSockObj(const CS_STRING & sHostname, u_short iPort)
|
||||
{
|
||||
CSChatSock *p = new CSChatSock(sHostname, iPort);
|
||||
@@ -457,6 +459,12 @@ private:
|
||||
|
||||
//////////////////// methods ////////////////
|
||||
|
||||
CSChatSock::~CSChatSock()
|
||||
{
|
||||
m_pModule->GetUser()->AddBytesRead(GetBytesRead());
|
||||
m_pModule->GetUser()->AddBytesWritten(GetBytesWritten());
|
||||
}
|
||||
|
||||
void CSChatSock::ReadLine(const CS_STRING & sLine)
|
||||
{
|
||||
if (m_pModule)
|
||||
|
||||
Reference in New Issue
Block a user