summaryrefslogtreecommitdiff
path: root/plugins/MetaContacts/src/meta_services.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2013-05-24 19:45:46 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2013-05-24 19:45:46 +0000
commit386b0374969f724a99d145242dddf8562ff1be7c (patch)
tree50695d06b56cd4c8283e77ffa59b4d3dd0e4f80a /plugins/MetaContacts/src/meta_services.cpp
parent977f89fd3104eefe691126266bef323304d6b236 (diff)
MetaContacts mow uses status descriptions from the core
git-svn-id: http://svn.miranda-ng.org/main/trunk@4813 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MetaContacts/src/meta_services.cpp')
-rwxr-xr-xplugins/MetaContacts/src/meta_services.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/MetaContacts/src/meta_services.cpp b/plugins/MetaContacts/src/meta_services.cpp
index db338c5477..74bfbfbc7c 100755
--- a/plugins/MetaContacts/src/meta_services.cpp
+++ b/plugins/MetaContacts/src/meta_services.cpp
@@ -583,7 +583,6 @@ int Meta_SettingChanged(WPARAM wParam, LPARAM lParam)
{
DBCONTACTWRITESETTING *dcws = (DBCONTACTWRITESETTING *)lParam;
char buffer[512], szId[40];
- TCHAR buffer2[512];
int contact_number;
HANDLE hMeta, most_online;
@@ -740,8 +739,8 @@ int Meta_SettingChanged(WPARAM wParam, LPARAM lParam)
strcpy(buffer, "StatusString");
strcat(buffer, _itoa(contact_number, szId, 10));
- Meta_GetStatusString(dcws->value.wVal, buffer2, 512);
- db_set_ts(hMeta, META_PROTO, buffer, buffer2);
+ TCHAR *szStatus = (TCHAR*) CallService(MS_CLIST_GETSTATUSMODEDESCRIPTION, (WPARAM)dcws->value.wVal, GSMDF_TCHAR);
+ db_set_ts(hMeta, META_PROTO, buffer, szStatus);
// if the contact was forced, unforce it (which updates status)
if ((HANDLE)db_get_dw(hMeta, META_PROTO, "ForceSend", 0) == (HANDLE)wParam) {