From 2f862c5d8d3f057a93c90351773b9d89a28f4442 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 30 Dec 2018 20:42:29 +0300 Subject: fix for search in offline mode --- protocols/Icq10/src/proto.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'protocols/Icq10') 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"); -- cgit v1.2.3