diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-03-07 12:23:18 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-03-07 12:23:18 +0000 |
commit | 7ad29f87c6d2be2b8fd48c25c94a21b7a5db7b0d (patch) | |
tree | 4c4209f4fe6171693e559f2420264de095617d35 /plugins/MobileState | |
parent | 6d4c2c4ca59fb635debdf69be2378d052c807756 (diff) |
MobileState: Fix not working detection I break back in r12020; Version bump
Problem was that I forgot to convert client from database to lowercase which resulted in 99% of clients being not identified correctly.
git-svn-id: http://svn.miranda-ng.org/main/trunk@12368 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MobileState')
-rw-r--r-- | plugins/MobileState/src/main.cpp | 4 | ||||
-rw-r--r-- | plugins/MobileState/src/version.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/plugins/MobileState/src/main.cpp b/plugins/MobileState/src/main.cpp index 86c51de58b..30fab7c64d 100644 --- a/plugins/MobileState/src/main.cpp +++ b/plugins/MobileState/src/main.cpp @@ -56,6 +56,10 @@ bool hasMobileClient(MCONTACT hContact, LPARAM) ptrT client(db_get_tsa(hContact, proto, "MirVer"));
if (client) {
+ // Make client lower-case
+ _tcslwr(client);
+
+ // Find whether this client contain something from clients list
for (size_t i = 0; i < SIZEOF(clients); i++)
if (_tcsstr(client, clients[i]))
return true;
diff --git a/plugins/MobileState/src/version.h b/plugins/MobileState/src/version.h index ffca7bc806..d62e49d6b9 100644 --- a/plugins/MobileState/src/version.h +++ b/plugins/MobileState/src/version.h @@ -1,7 +1,7 @@ #define __MAJOR_VERSION 0
#define __MINOR_VERSION 0
#define __RELEASE_NUM 1
-#define __BUILD_NUM 5
+#define __BUILD_NUM 6
#include <stdver.h>
|