From 9febdce6ef4e7553cef02d6d1c5ccc70b24c55f5 Mon Sep 17 00:00:00 2001 From: dartraiden Date: Wed, 15 Nov 2017 20:20:43 +0300 Subject: ICQ: remove useless check (max pass is 16 not 8, and password in Unicode) --- protocols/IcqOscarJ/src/db.cpp | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/protocols/IcqOscarJ/src/db.cpp b/protocols/IcqOscarJ/src/db.cpp index ac1be0b425..1c03f1e4ff 100644 --- a/protocols/IcqOscarJ/src/db.cpp +++ b/protocols/IcqOscarJ/src/db.cpp @@ -178,26 +178,10 @@ int ChangeInfoData::SaveSettingsToDb(HWND hwnd) } switch (si.dbType) { case DBVT_ASCIIZ: - if (si.displayType & LIF_PASSWORD) { - size_t nSettingLen = mir_strlen((char*)sid.value); - if (nSettingLen > 8 || nSettingLen < 1) { - MessageBox(hwnd, TranslateT("The ICQ server does not support passwords longer than 8 characters. Please use a shorter password."), TranslateT("Change ICQ Details"), MB_OK); - ret = 0; - break; - } - PwConfirmDlgParam param = { ppro, (char*)sid.value }; - if (IDOK != DialogBoxParam(hInst, MAKEINTRESOURCE(IDD_PWCONFIRM), hwnd, PwConfirmDlgProc, (LPARAM)¶m)) { - ret = 0; - break; - } - mir_strcpy(ppro->m_szPassword, (char*)sid.value); - } - else { - if (*(char*)sid.value) - db_set_utf(NULL, ppro->m_szModuleName, si.szDbSetting, (char*)sid.value); - else - ppro->delSetting(si.szDbSetting); - } + if (*(char*)sid.value) + db_set_utf(NULL, ppro->m_szModuleName, si.szDbSetting, (char*)sid.value); + else + ppro->delSetting(si.szDbSetting); break; case DBVT_UTF8: -- cgit v1.2.3