summaryrefslogtreecommitdiff
path: root/plugins/MobileState
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MobileState')
-rw-r--r--plugins/MobileState/mobilestate_10.vcxproj1
-rw-r--r--plugins/MobileState/mobilestate_10.vcxproj.filters3
-rw-r--r--plugins/MobileState/src/clients.h2
-rw-r--r--plugins/MobileState/src/main.cpp4
4 files changed, 7 insertions, 3 deletions
diff --git a/plugins/MobileState/mobilestate_10.vcxproj b/plugins/MobileState/mobilestate_10.vcxproj
index 20fb47c56f..eb9bdc55df 100644
--- a/plugins/MobileState/mobilestate_10.vcxproj
+++ b/plugins/MobileState/mobilestate_10.vcxproj
@@ -185,6 +185,7 @@
<ClCompile Include="src\main.cpp" />
</ItemGroup>
<ItemGroup>
+ <ClInclude Include="src\clients.h" />
<ClInclude Include="src\commonheaders.h" />
<ClInclude Include="src\resource.h" />
<ClInclude Include="src\Version.h" />
diff --git a/plugins/MobileState/mobilestate_10.vcxproj.filters b/plugins/MobileState/mobilestate_10.vcxproj.filters
index 23cdf025c5..88024c1c1a 100644
--- a/plugins/MobileState/mobilestate_10.vcxproj.filters
+++ b/plugins/MobileState/mobilestate_10.vcxproj.filters
@@ -32,6 +32,9 @@
<ClInclude Include="src\Version.h">
<Filter>Header Files</Filter>
</ClInclude>
+ <ClInclude Include="src\clients.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\mobilestate.rc">
diff --git a/plugins/MobileState/src/clients.h b/plugins/MobileState/src/clients.h
index 02df174669..f9f4fa3782 100644
--- a/plugins/MobileState/src/clients.h
+++ b/plugins/MobileState/src/clients.h
@@ -34,7 +34,7 @@ static const TCHAR *clients[] = {
_T("bombus"),
_T("colibry"),
_T("berry"),
- _T("iphone"),
+ _T("phone"),
_T("ipad"),
_T("im+"),
_T("bayan"),
diff --git a/plugins/MobileState/src/main.cpp b/plugins/MobileState/src/main.cpp
index d934e811e4..739877cfa3 100644
--- a/plugins/MobileState/src/main.cpp
+++ b/plugins/MobileState/src/main.cpp
@@ -56,9 +56,9 @@ bool hasMobileClient(HANDLE hContact, LPARAM lParam)
char *proto = GetContactProto(hContact);
DBVARIANT dbv;
- if (!DBGetContactSettingTString(hContact, proto, "MirVer", &dbv)) {
+ if (!db_get_ts(hContact, proto, "MirVer", &dbv)) {
TCHAR *client = _tcslwr(NEWTSTR_ALLOCA(dbv.ptszVal));
- DBFreeVariant(&dbv);
+ db_free(&dbv);
for (size_t i=0; i<(sizeof(clients) / sizeof(TCHAR*)); i++)
if (_tcsstr(client, clients[i]))