Make CTCP flood timer use monotonic time

Probably should use std::chrono types instead of int, but that'll be a later change
This commit is contained in:
Alexey Sokolov
2025-05-11 21:16:20 +01:00
parent 4f65f86ccd
commit 694f50c9c0
2 changed files with 4 additions and 4 deletions

View File

@@ -228,9 +228,9 @@ class CIRCSock : public CIRCSocket {
SCString m_ssPendingCaps;
SCString m_ssPendingCapsPhase2;
MCString m_msCapLsValues;
time_t m_lastCTCP;
unsigned long long m_lastCTCP;
unsigned int m_uNumCTCP;
static const time_t m_uCTCPFloodTime;
static const unsigned long long m_uCTCPFloodTime;
static const unsigned int m_uCTCPFloodCount;
MCString m_mISupport;
std::deque<CMessage> m_vSendQueue;