X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/c27a570c2cd350c592b699f3841ebb4db3fae63e..09a9984d2d13448614d92b8e3ab4cdf10abc0b68:/projects/stargazer/user.h diff --git a/projects/stargazer/user.h b/projects/stargazer/user.h index 8e338463..3472ba4b 100644 --- a/projects/stargazer/user.h +++ b/projects/stargazer/user.h @@ -202,8 +202,8 @@ private: void Disconnect(bool fakeDisconnect, const std::string & reason); int SaveMonthStat(int month, int year); - int SendMessage(const STG_MSG & msg); - int ScanMessage(); + int SendMessage(STG_MSG & msg) const; + void ScanMessage(); time_t lastScanMessages; string login; @@ -233,7 +233,7 @@ private: const TARIFF * tariff; TRAFF_STAT traffStat; - std::list > traffStatQueue; + std::pair traffStatSaved; const SETTINGS * settings; @@ -241,11 +241,12 @@ private: const map * ipIndex; + list messages; + bool deleted; time_t lastWriteStat; // ÷ÒÅÍÑ ÐÏÓÌÅÄÎÅÊ ÚÁÐÉÓÉ ÓÔÁÔÉÓÔÉËÉ time_t lastWriteDeatiledStat; // ÷ÒÅÍÑ ÐÏÓÌÅÄÎÅÊ ÚÁÐÉÓÉ ÄÅÔÁÌØÎÏÊ ÓÔÁÔÉÓÔÉËÉ - time_t lastSwapDeatiledStat; // ÷ÒÅÍÑ ÐÏÓÌÅÄÎÅÊ ÚÁÐÉÓÉ ÄÅÔÁÌØÎÏÊ ÓÔÁÔÉÓÔÉËÉ bool writeFreeMbTraffCost;