diff options
author | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-08-01 12:08:20 +0000 |
---|---|---|
committer | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-08-01 12:08:20 +0000 |
commit | 46274e08f27714a3969002d8dfdc16aca7eb65ef (patch) | |
tree | 611dc8db9e6891e3a991fd1f9ac8420e36bce208 | |
parent | 9baca65df9519bf48e2820c06f5612d29be4637a (diff) |
fix - initially idle contacts stay offline
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@319 4f64403b-2f21-0410-a795-97e2b3489a10
-rw-r--r-- | MySpace/server_con.cpp | 2 | ||||
-rw-r--r-- | MySpace/version.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/MySpace/server_con.cpp b/MySpace/server_con.cpp index aefb24c..07d3684 100644 --- a/MySpace/server_con.cpp +++ b/MySpace/server_con.cpp @@ -285,6 +285,8 @@ void try_login(NetMessage &msg, HANDLE connection) { int ParseStatusMessage(HANDLE hContact, PipedStringList &l) {
int stat = stat_myspace_to_mir(l.get_int(1));
if(stat == ID_STATUS_IDLE) {
+ if(DBWriteContactSettingWord(hContact, MODULE, "Status", ID_STATUS_OFFLINE) == ID_STATUS_OFFLINE)
+ DBWriteContactSettingWord(hContact, MODULE, "Status", ID_STATUS_ONLINE);
DBWriteContactSettingDword(hContact, MODULE, "IdleTS", (DWORD)time(0));
} else {
DBWriteContactSettingWord(hContact, MODULE, "Status", stat);
diff --git a/MySpace/version.h b/MySpace/version.h index 5eb178c..b5cedcf 100644 --- a/MySpace/version.h +++ b/MySpace/version.h @@ -5,7 +5,7 @@ #define __MAJOR_VERSION 0
#define __MINOR_VERSION 0
#define __RELEASE_NUM 5
-#define __BUILD_NUM 8
+#define __BUILD_NUM 9
#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
#define __FILEVERSION_STRING_DOTS __MAJOR_VERSION.__MINOR_VERSION.__RELEASE_NUM.__BUILD_NUM
|