summaryrefslogtreecommitdiff
path: root/protocols/ICQ-WIM/src/proto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-01-18 17:59:18 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-01-18 17:59:18 +0300
commita28acd3195e07adbf12495a1b50a5c0b2c2dfbbd (patch)
treef89b8ae1c4f312e351a4a08ebe3528870cc738a5 /protocols/ICQ-WIM/src/proto.cpp
parent73b8de6d32ee10e80f1905e07ce5674de54f2571 (diff)
fixes #1765 (ICQ goes offline when user change statuses too fast)
Diffstat (limited to 'protocols/ICQ-WIM/src/proto.cpp')
-rw-r--r--protocols/ICQ-WIM/src/proto.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/ICQ-WIM/src/proto.cpp b/protocols/ICQ-WIM/src/proto.cpp
index e1f926c4ff..aeade1e3a9 100644
--- a/protocols/ICQ-WIM/src/proto.cpp
+++ b/protocols/ICQ-WIM/src/proto.cpp
@@ -406,7 +406,7 @@ int CIcqProto::SetStatus(int iNewStatus)
ProtoBroadcastAck(0, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)iOldStatus, m_iStatus);
}
// not logged in? come on
- else if (!IsStatusConnecting(m_iStatus)) {
+ else if (!m_bOnline && !IsStatusConnecting(m_iStatus)) {
m_iStatus = ID_STATUS_CONNECTING;
ProtoBroadcastAck(0, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)iOldStatus, m_iStatus);