diff options
author | dartraiden <wowemuh@gmail.com> | 2017-11-15 20:20:43 +0300 |
---|---|---|
committer | dartraiden <wowemuh@gmail.com> | 2017-11-15 20:20:43 +0300 |
commit | 9febdce6ef4e7553cef02d6d1c5ccc70b24c55f5 (patch) | |
tree | 770c3159a3af7fa4d400ecccf0b3a336f7dd2206 /protocols | |
parent | cf94714e719bff9a7b36af9dedf5121be9147f65 (diff) |
ICQ: remove useless check (max pass is 16 not 8, and password in Unicode)
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/IcqOscarJ/src/db.cpp | 24 |
1 files 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:
|