From 67ae3904583a25592d44db704273c4490680b03f Mon Sep 17 00:00:00 2001 From: psychon Date: Wed, 5 Sep 2007 16:06:28 +0000 Subject: [PATCH] Follow Csocket API change git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@838 726aef4b-f618-498e-8847-2d620e286838 --- Timers.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Timers.h b/Timers.h index 99dd8d53..3a3e6bb6 100644 --- a/Timers.h +++ b/Timers.h @@ -49,14 +49,14 @@ protected: vector& vClients = m_pUser->GetClients(); CIRCSock* pIRCSock = m_pUser->GetIRCSock(); - if (pIRCSock && pIRCSock->GetTimeSinceLastWrite() >= 270) { + if (pIRCSock && pIRCSock->GetTimeSinceLastDataTransaction() >= 270) { pIRCSock->PutIRC("PING :ZNC"); } for (size_t a = 0; a < vClients.size(); a++) { CClient* pClient = vClients[a]; - if (pClient->GetTimeSinceLastWrite() >= 470) { + if (pClient->GetTimeSinceLastDataTransaction() >= 470) { pClient->PutClient("PING :ZNC"); } }