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 committed 2025-05-11 21:24:08 +01:00
1 parent 4f65f86ccd
commit 694f50c9c0
2 files changed
+4 -4

No files matched your search

+2 -2
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;