summaryrefslogtreecommitdiff
path: root/protocols/ICQ-WIM/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-06-25 13:02:29 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-06-25 13:02:29 +0300
commit46109fd96df2dd1efb7036d3ac38b6bc295b4392 (patch)
tree83ca99b30ea4332717ff286df41a790f68e30ee8 /protocols/ICQ-WIM/src
parentc4c9a256d3f99f22671214a7377a439d2bf68df3 (diff)
fixes #4490 (ICQ: проблема Load Server History)
Diffstat (limited to 'protocols/ICQ-WIM/src')
-rw-r--r--protocols/ICQ-WIM/src/http.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/ICQ-WIM/src/http.cpp b/protocols/ICQ-WIM/src/http.cpp
index 1bb6c21ffc..f6035bbc97 100644
--- a/protocols/ICQ-WIM/src/http.cpp
+++ b/protocols/ICQ-WIM/src/http.cpp
@@ -201,9 +201,9 @@ bool CIcqProto::ExecuteRequest(AsyncHttpRequest *pReq)
}
}
- if (pReq->m_conn == CONN_RAPI && reply->body.Find("\"code\": 40201") != -1) {
+ if (pReq->m_conn == CONN_RAPI && reply->body.Find("\"code\":") != -1) {
RobustReply r(reply);
- if (r.error() == 40201) { // robust token expired
+ if (r.error() == 40201 || r.error() == 40200) { // robust token expired
m_szRToken.Empty();
// if token refresh succeeded, replace it in the query and push request back