From 7ad29f87c6d2be2b8fd48c25c94a21b7a5db7b0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sat, 7 Mar 2015 12:23:18 +0000 Subject: 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 --- plugins/MobileState/src/main.cpp | 4 ++++ plugins/MobileState/src/version.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3