diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2013-05-24 19:45:46 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2013-05-24 19:45:46 +0000 |
commit | 386b0374969f724a99d145242dddf8562ff1be7c (patch) | |
tree | 50695d06b56cd4c8283e77ffa59b4d3dd0e4f80a /plugins/MetaContacts/src/meta_services.cpp | |
parent | 977f89fd3104eefe691126266bef323304d6b236 (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-x | plugins/MetaContacts/src/meta_services.cpp | 5 |
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) {
|