From 0c508d74bee722c4d0032b33377a1305b484027a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 28 Dec 2018 20:28:13 +0300 Subject: obsolte perversion with PF4_INFOSETTINGSVC removed --- plugins/SpellChecker/src/utils.cpp | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'plugins/SpellChecker') 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; -- cgit v1.2.3