Add PING_TIMEOUT constant to CIRCNetwork

This commit is contained in:
Alexander Færøy
2014-05-30 12:57:39 +02:00
parent 1e9e029227
commit 2521d64a1c
3 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ protected:
for (size_t c = 0; c < vUserClients.size(); ++c) {
CClient* pUserClient = vUserClients[c];
if (pUserClient->GetTimeSinceLastDataTransaction() >= 270) {
if (pUserClient->GetTimeSinceLastDataTransaction() >= CIRCNetwork::PING_TIMEOUT) {
pUserClient->PutClient("PING :ZNC");
}
}