diff options
Diffstat (limited to 'MySpace/server_con.cpp')
-rw-r--r-- | MySpace/server_con.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/MySpace/server_con.cpp b/MySpace/server_con.cpp index 3d7319f..5f140b2 100644 --- a/MySpace/server_con.cpp +++ b/MySpace/server_con.cpp @@ -475,7 +475,9 @@ void __cdecl ServerThreadFunc(void*) { LookupUID(uid);
}
PipedStringList l = msg.get_list("msg");
- if(ParseStatusMessage(hContact, l) == ID_STATUS_ONLINE && status != ID_STATUS_INVISIBLE) {
+ int old_status = DBGetContactSettingWord(hContact, MODULE, "Status", ID_STATUS_OFFLINE),
+ new_status = ParseStatusMessage(hContact, l);
+ if(status != ID_STATUS_INVISIBLE && old_status != new_status && new_status != ID_STATUS_OFFLINE) {
ClientNetMessage msg;
msg.add_int("bm", 200);
msg.add_int("sesskey", sesskey);
|