summaryrefslogtreecommitdiff
path: root/protocols/ICQ-WIM/src/proto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-01-31 16:10:20 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-01-31 16:10:27 +0300
commitd8aaed8d4fbec6147975e482f4b02a8e9521d99a (patch)
tree11a178b327428970ed38eeba172487ba3ab4d34c /protocols/ICQ-WIM/src/proto.cpp
parent332488b9d65e049c057bfd0b147f402ab0d8bf92 (diff)
fixes #1808 (ICQ10: implement login by email/password)
Diffstat (limited to 'protocols/ICQ-WIM/src/proto.cpp')
-rw-r--r--protocols/ICQ-WIM/src/proto.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/ICQ-WIM/src/proto.cpp b/protocols/ICQ-WIM/src/proto.cpp
index 6de8c1e60d..3520584a24 100644
--- a/protocols/ICQ-WIM/src/proto.cpp
+++ b/protocols/ICQ-WIM/src/proto.cpp
@@ -41,6 +41,7 @@ CIcqProto::CIcqProto(const char* aProtoName, const wchar_t* aUserName) :
arMarkReadQueue(10, NumericKeySortT),
m_evRequestsQueue(CreateEvent(nullptr, FALSE, FALSE, nullptr)),
m_dwUin(this, DB_KEY_UIN, 0),
+ m_szEmail(this, "Email"),
m_szPassword(this, "Password"),
m_bHideGroupchats(this, "HideChats", 1)
{
@@ -435,7 +436,7 @@ int CIcqProto::SetStatus(int iNewStatus)
m_iStatus = ID_STATUS_CONNECTING;
ProtoBroadcastAck(0, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)iOldStatus, m_iStatus);
- if (m_dwUin == 0) {
+ if (m_dwUin == 0 && mir_wstrlen(m_szEmail) == 0) {
debugLogA("Thread ended, UIN/password are not configured");
ConnectionFailed(LOGINERR_BADUSERID);
return 0;