summaryrefslogtreecommitdiff
path: root/plugins/MobileState/src/main.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2015-03-07 12:23:18 +0000
committerRobert Pösel <robyer@seznam.cz>2015-03-07 12:23:18 +0000
commit7ad29f87c6d2be2b8fd48c25c94a21b7a5db7b0d (patch)
tree4c4209f4fe6171693e559f2420264de095617d35 /plugins/MobileState/src/main.cpp
parent6d4c2c4ca59fb635debdf69be2378d052c807756 (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/src/main.cpp')
-rw-r--r--plugins/MobileState/src/main.cpp4
1 files changed, 4 insertions, 0 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;