diff options
author | George Hazan <ghazan@miranda.im> | 2018-12-28 20:28:13 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-12-28 20:28:13 +0300 |
commit | 0c508d74bee722c4d0032b33377a1305b484027a (patch) | |
tree | 224be76126cb0e208843f818deb5a6c6cdba1761 /plugins | |
parent | 34ff0a2b21a357f80e798940df9ce887dcf1e185 (diff) |
obsolte perversion with PF4_INFOSETTINGSVC removed
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/SpellChecker/src/utils.cpp | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/plugins/SpellChecker/src/utils.cpp b/plugins/SpellChecker/src/utils.cpp index c15dba0830..a81c075e20 100644 --- a/plugins/SpellChecker/src/utils.cpp +++ b/plugins/SpellChecker/src/utils.cpp @@ -709,20 +709,8 @@ void GetUserProtoLanguageSetting(Dialog *dlg, MCONTACT hContact, char *group, ch {
DBVARIANT dbv = { 0 };
dbv.type = DBVT_WCHAR;
-
- int caps = (isProtocol ? CallProtoService(group, PS_GETCAPS, PFLAGNUM_4, 0) : 0);
- if (caps & PF4_INFOSETTINGSVC) {
- DBCONTACTGETSETTING cgs = {};
- cgs.szModule = group;
- cgs.szSetting = setting;
- cgs.pValue = &dbv;
- if (CallProtoService(group, PS_GETINFOSETTING, hContact, (LPARAM)&cgs))
- return;
- }
- else {
- if (db_get_ws(hContact, group, setting, &dbv))
- return;
- }
+ if (db_get_ws(hContact, group, setting, &dbv))
+ return;
if (dbv.type == DBVT_WCHAR && dbv.pwszVal != nullptr) {
wchar_t *lang = dbv.pwszVal;
|