From 9bd700bc335fb2b5864fdbdcda14862188d13ddb Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 13 Jun 2017 21:47:51 +0300 Subject: minor fix for Skype login --- protocols/SkypeWeb/src/skype_oauth.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/SkypeWeb/src') diff --git a/protocols/SkypeWeb/src/skype_oauth.cpp b/protocols/SkypeWeb/src/skype_oauth.cpp index 17d6455a82..1d82cac793 100644 --- a/protocols/SkypeWeb/src/skype_oauth.cpp +++ b/protocols/SkypeWeb/src/skype_oauth.cpp @@ -68,13 +68,13 @@ void CSkypeProto::OnOAuthAuthorize(const NETLIBHTTPREQUEST *response) std::smatch match; std::string content = response->pData; - regex = ""; + regex = ""; if (!std::regex_search(content, match, regex)) { ProtoBroadcastAck(NULL, ACKTYPE_LOGIN, ACKRESULT_FAILED, NULL, LOGIN_ERROR_UNKNOWN); SetStatus(ID_STATUS_OFFLINE); return; } - std::string t = match[1]; + std::string t = match[3]; PushRequest(new OAuthRequest(t.c_str()), &CSkypeProto::OnOAuthEnd); } -- cgit v1.2.3