diff options
author | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-07-11 03:35:12 +0000 |
---|---|---|
committer | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-07-11 03:35:12 +0000 |
commit | 03d3438ca1a604d12ad786743a987eacfcb18632 (patch) | |
tree | e3a1f9fe2c58fbc1dfdffd89d543f2e4cbf90ec1 | |
parent | e40a3421da567a02a69249e2486420bec3c4cc44 (diff) |
only send mir ver when contact status changes from offline
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@273 4f64403b-2f21-0410-a795-97e2b3489a10
-rw-r--r-- | MySpace/server_con.cpp | 4 | ||||
-rw-r--r-- | MySpace/version.h | 2 |
2 files changed, 4 insertions, 2 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);
diff --git a/MySpace/version.h b/MySpace/version.h index d9791f1..a4521ba 100644 --- a/MySpace/version.h +++ b/MySpace/version.h @@ -5,7 +5,7 @@ #define __MAJOR_VERSION 0
#define __MINOR_VERSION 0
#define __RELEASE_NUM 4
-#define __BUILD_NUM 4
+#define __BUILD_NUM 5
#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
#define __FILEVERSION_STRING_DOTS __MAJOR_VERSION.__MINOR_VERSION.__RELEASE_NUM.__BUILD_NUM
|