summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-06-03 20:41:27 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-06-03 20:41:27 +0300
commit483f1a1db4b60c36020aee68a99666b24471f179 (patch)
tree42ca015323b81a515169e0e601741f81b38135cb
parent8c54396c2a3798f1cea2bab91275eeae954f8f94 (diff)
fixes #1975 (broken ICQ search by phone number, require a phone to be entered as +NNNNNNN)
-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 0833fa1696..49e5c4fb93 100644
--- a/protocols/ICQ-WIM/src/proto.cpp
+++ b/protocols/ICQ-WIM/src/proto.cpp
@@ -347,7 +347,7 @@ HANDLE CIcqProto::SearchBasic(const wchar_t *pszSearch)
auto *pReq = new AsyncHttpRequest(CONN_RAPI, REQUEST_POST, ICQ_ROBUST_SERVER, &CIcqProto::OnSearchResults);
JSONNode request, params; params.set_name("params");
- params << WCHAR_PARAM("keyword", pszSearch);
+ params << WCHAR_PARAM(*pszSearch == '+' ? "phonenum" : "keyword", pszSearch);
request << CHAR_PARAM("method", "search") << CHAR_PARAM("reqId", pReq->m_reqId) << params;
pReq->m_szParam = ptrW(json_write(&request));
Push(pReq);