git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Виправлено падіння сервера при надсиланні повідомлення
[stg.git]
/
projects
/
stargazer
/
user.h
diff --git
a/projects/stargazer/user.h
b/projects/stargazer/user.h
index 8b0c4dbacee8c6b7bc827fe15a9700a802f79a23..3472ba4b6334248bdcd4f65e3391ccb2953433b5 100644
(file)
--- 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);
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;
time_t lastScanMessages;
string login;
@@
-241,6
+241,8
@@
private:
const map<uint32_t, user_iter> * ipIndex;
const map<uint32_t, user_iter> * ipIndex;
+ list<STG_MSG> messages;
+
bool deleted;
time_t lastWriteStat; // ÷ÒÅÍÑ ÐÏÓÌÅÄÎÅÊ ÚÁÐÉÓÉ ÓÔÁÔÉÓÔÉËÉ
bool deleted;
time_t lastWriteStat; // ÷ÒÅÍÑ ÐÏÓÌÅÄÎÅÊ ÚÁÐÉÓÉ ÓÔÁÔÉÓÔÉËÉ