summaryrefslogtreecommitdiff
path: root/protocols/ICQ-WIM/src/options.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-02-07 19:10:44 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-02-07 19:10:44 +0300
commitb396750fae7f9f41043ddeb849e5cff29cbcca9c (patch)
tree64fc971e06729c748c7d1ecd9896841adf50104f /protocols/ICQ-WIM/src/options.cpp
parentc13e5563e2e248992a201466a9ce1c73b3c58808 (diff)
ICQ-WIM:
- DWORD UIN dumped and replaced everywhere with CMStringW aimId; - additional Email field removed from options, now UIN acts like email - MRA is fully supported - version bump
Diffstat (limited to 'protocols/ICQ-WIM/src/options.cpp')
-rw-r--r--protocols/ICQ-WIM/src/options.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/protocols/ICQ-WIM/src/options.cpp b/protocols/ICQ-WIM/src/options.cpp
index 68b3ea8520..1f4ba7a39c 100644
--- a/protocols/ICQ-WIM/src/options.cpp
+++ b/protocols/ICQ-WIM/src/options.cpp
@@ -146,7 +146,7 @@ void CIcqProto::OnLoginViaPhone(NETLIBHTTPREQUEST *pReply, AsyncHttpRequest *pRe
m_szSessionKey = data["sessionKey"].as_mstring();
setString(DB_KEY_SESSIONKEY, m_szSessionKey);
- m_dwUin = _wtoi(data["loginId"].as_mstring());
+ m_szOwnId = data["loginId"].as_mstring();
setByte(DB_KEY_PHONEREG, 1);
}
@@ -154,7 +154,7 @@ void CIcqProto::OnLoginViaPhone(NETLIBHTTPREQUEST *pReply, AsyncHttpRequest *pRe
class CIcqOptionsDlg : public CProtoDlgBase<CIcqProto>
{
- CCtrlEdit edtUin, edtEmail, edtPassword, edtDiff1, edtDiff2;
+ CCtrlEdit edtUin, edtPassword, edtDiff1, edtDiff2;
CCtrlSpin spin1, spin2;
CCtrlCombo cmbStatus1, cmbStatus2;
CCtrlCheck chkHideChats;
@@ -167,7 +167,6 @@ public:
spin1(this, IDC_SPIN1, 3600),
spin2(this, IDC_SPIN2, 3600),
edtUin(this, IDC_UIN),
- edtEmail(this, IDC_EMAIL),
edtDiff1(this, IDC_DIFF1),
edtDiff2(this, IDC_DIFF2),
btnCreate(this, IDC_REGISTER),
@@ -181,8 +180,7 @@ public:
edtDiff1.OnChange = Callback(this, &CIcqOptionsDlg::onChange_Timeout1);
edtDiff2.OnChange = Callback(this, &CIcqOptionsDlg::onChange_Timeout2);
- CreateLink(edtUin, ppro->m_dwUin);
- CreateLink(edtEmail, ppro->m_szEmail);
+ CreateLink(edtUin, ppro->m_szOwnId);
CreateLink(edtPassword, ppro->m_szPassword);
if (bFullDlg) {
CreateLink(spin1, ppro->m_iTimeDiff1);
@@ -211,8 +209,6 @@ public:
onChange_Timeout1(0);
}
- if (m_proto->m_dwUin == 0)
- edtUin.SetText(L"");
return true;
}