From 386b0374969f724a99d145242dddf8562ff1be7c Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Fri, 24 May 2013 19:45:46 +0000 Subject: MetaContacts mow uses status descriptions from the core git-svn-id: http://svn.miranda-ng.org/main/trunk@4813 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MetaContacts/src/meta_services.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'plugins/MetaContacts/src/meta_services.cpp') 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) { -- cgit v1.2.3