summaryrefslogtreecommitdiff
path: root/protocols/Icq10
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-12-30 20:42:29 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-12-30 20:42:29 +0300
commit2f862c5d8d3f057a93c90351773b9d89a28f4442 (patch)
tree37756472a6541942475ae118d47647d5c2e563c2 /protocols/Icq10
parent69a81a736bfbb2a215a6c56ad83977d5753b2c6d (diff)
fix for search in offline mode
Diffstat (limited to 'protocols/Icq10')
-rw-r--r--protocols/Icq10/src/proto.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/Icq10/src/proto.cpp b/protocols/Icq10/src/proto.cpp
index 6d26bfdd40..5c31748e37 100644
--- a/protocols/Icq10/src/proto.cpp
+++ b/protocols/Icq10/src/proto.cpp
@@ -236,6 +236,9 @@ int CIcqProto::GetInfo(MCONTACT hContact, int infoType)
HANDLE CIcqProto::SearchBasic(const wchar_t *pszSearch)
{
+ if (m_bOnline)
+ return nullptr;
+
auto *pReq = new AsyncHttpRequest(CONN_RAPI, REQUEST_POST, ICQ_ROBUST_SERVER, &CIcqProto::OnSearchResults);
JSONNode request, params; params.set_name("params");