From 281fbb65922ab20e415695608f0e24a65231b4f8 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Sun, 25 Mar 2018 07:06:04 +0300 Subject: typo fix --- protocols/JabberG/src/jabber_thread.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'protocols/JabberG/src/jabber_thread.cpp') diff --git a/protocols/JabberG/src/jabber_thread.cpp b/protocols/JabberG/src/jabber_thread.cpp index b545d40888..1b46d0e63f 100755 --- a/protocols/JabberG/src/jabber_thread.cpp +++ b/protocols/JabberG/src/jabber_thread.cpp @@ -738,7 +738,7 @@ void CJabberProto::OnProcessFeatures(HXML node, ThreadData *info) else if (!mir_wstrcmp(XmlGetName(n), L"session")) m_AuthMechs.isSessionAvailable = true; else if (m_bEnableStreamMgmt && !mir_wstrcmp(XmlGetName(n), L"sm")) { - if (mir_wstrcmp(XmlGetAttrValue(n, L"xmlns"), L"urn:xmpp:sm:3")) //we work only with version 3 or higher of sm + if (!mir_wstrcmp(XmlGetAttrValue(n, L"xmlns"), L"urn:xmpp:sm:3")) //we work only with version 3 or higher of sm { if (!(info->auth)) { @@ -793,7 +793,7 @@ void CJabberProto::OnProcessFailure(HXML node, ThreadData *info) void CJabberProto::OnProcessFailed(HXML node, ThreadData * /*info*/) //used failed instead of failure, notes: https://xmpp.org/extensions/xep-0198.html#errors { - if (m_bEnableStreamMgmt && mir_wstrcmp(XmlGetAttrValue(node, L"xmlns"), L"urn:xmpp:sm:3")) + if (m_bEnableStreamMgmt && !mir_wstrcmp(XmlGetAttrValue(node, L"xmlns"), L"urn:xmpp:sm:3")) { //TODO: handle failure } @@ -801,7 +801,7 @@ void CJabberProto::OnProcessFailed(HXML node, ThreadData * /*info*/) //used fail void CJabberProto::OnProcessEnabled(HXML node, ThreadData * /*info*/) { - if (m_bEnableStreamMgmt && mir_wstrcmp(XmlGetAttrValue(node, L"xmlns"), L"urn:xmpp:sm:3")) + if (m_bEnableStreamMgmt && !mir_wstrcmp(XmlGetAttrValue(node, L"xmlns"), L"urn:xmpp:sm:3")) { //TODO: handle 'id', 'resume' attrs } @@ -809,7 +809,7 @@ void CJabberProto::OnProcessEnabled(HXML node, ThreadData * /*info*/) void CJabberProto::OnProcessSMa(HXML node, ThreadData * /*info*/) { - if (mir_wstrcmp(XmlGetAttrValue(node, L"xmlns"), L"urn:xmpp:sm:3")) + if (!mir_wstrcmp(XmlGetAttrValue(node, L"xmlns"), L"urn:xmpp:sm:3")) { //TODO: } @@ -817,7 +817,7 @@ void CJabberProto::OnProcessSMa(HXML node, ThreadData * /*info*/) void CJabberProto::OnProcessSMr(HXML node, ThreadData * /*info*/) { - if (mir_wstrcmp(XmlGetAttrValue(node, L"xmlns"), L"urn:xmpp:sm:3")) + if (!mir_wstrcmp(XmlGetAttrValue(node, L"xmlns"), L"urn:xmpp:sm:3")) { //TODO: reply with ack with currently handled nodes for session } -- cgit v1.2.3