From 3c4e6bc04580593cd0c83451a99c5bcdcebc2577 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 24 Mar 2020 21:39:07 +0300 Subject: Jabber: minor fix for restoring caps --- protocols/JabberG/src/jabber_caps.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'protocols/JabberG/src') diff --git a/protocols/JabberG/src/jabber_caps.cpp b/protocols/JabberG/src/jabber_caps.cpp index a9db096b77..20c0d42f3e 100755 --- a/protocols/JabberG/src/jabber_caps.cpp +++ b/protocols/JabberG/src/jabber_caps.cpp @@ -651,7 +651,7 @@ void CJabberClientCapsManager::Load() } for (auto &ver : node["versions"]) { - std::string szVer = ver["ver"].as_string(); + std::string szVer = ver["softver"].as_string(); std::string szHash = ver["hash"].as_string(); JabberCapsBits jcbCaps = _atoi64(ver["caps"].as_string().c_str()); @@ -660,7 +660,6 @@ void CJabberClientCapsManager::Load() res->SetOs(str2buf(ver["os"].as_string())); res->SetOsVer(str2buf(ver["osver"].as_string())); res->SetSoft(str2buf(ver["soft"].as_string())); - res->SetSoftVer(str2buf(ver["softver"].as_string())); res->SetSoftMir(str2buf(ver["softmir"].as_string())); } } -- cgit v1.2.3