From 97bb7e79c15952e7f9bf47caef4e3c09dd63c8df Mon Sep 17 00:00:00 2001 From: Goraf <22941576+Goraf@users.noreply.github.com> Date: Wed, 10 Jan 2018 13:27:54 +0100 Subject: Gadu-Gadu: complete update to libgadu-1.10.1-post --- protocols/Gadu-Gadu/src/core.cpp | 60 ++++++++++++++++++++-------------------- 1 file changed, 30 insertions(+), 30 deletions(-) (limited to 'protocols/Gadu-Gadu/src/core.cpp') diff --git a/protocols/Gadu-Gadu/src/core.cpp b/protocols/Gadu-Gadu/src/core.cpp index c0492fe247..e89ab034ea 100644 --- a/protocols/Gadu-Gadu/src/core.cpp +++ b/protocols/Gadu-Gadu/src/core.cpp @@ -1123,36 +1123,36 @@ retry: } break; - case GG_EVENT_XML_ACTION: - if (getByte(GG_KEY_ENABLEAVATARS, GG_KEYDEF_ENABLEAVATARS)) { - wchar_t *xmlAction = mir_a2u(e->event.xml_action.data); - wchar_t *tag = mir_a2u("events"); - HXML hXml = xmlParseString(xmlAction, nullptr, tag); - - if (hXml != nullptr) { - mir_free(tag); - tag = mir_a2u("event/type"); - HXML node = xmlGetChildByPath(hXml, tag, 0); - char *type = node != nullptr ? mir_u2a(xmlGetText(node)) : nullptr; - - mir_free(tag); - tag = mir_a2u("event/sender"); - node = xmlGetChildByPath(hXml, tag, 0); - char *sender = node != nullptr ? mir_u2a(xmlGetText(node)) : nullptr; - debugLogA("mainthread() (%x): XML Action type: %s.", this, type != nullptr ? type : "unknown"); - // Avatar change notify - if (type != nullptr && !mir_strcmp(type, "28")) { - debugLogA("mainthread() (%x): Client %s changed his avatar.", this, sender); - requestAvatarInfo(getcontact(atoi(sender), 0, 0, nullptr), 0); - } - mir_free(type); - mir_free(sender); - xmlDestroyNode(hXml); - } - mir_free(tag); - mir_free(xmlAction); - } - break; + //case GG_EVENT_XML_ACTION: + // if (getByte(GG_KEY_ENABLEAVATARS, GG_KEYDEF_ENABLEAVATARS)) { + // wchar_t *xmlAction = mir_a2u(e->event.xml_action.data); + // wchar_t *tag = mir_a2u("events"); + // HXML hXml = xmlParseString(xmlAction, nullptr, tag); + + // if (hXml != nullptr) { + // mir_free(tag); + // tag = mir_a2u("event/type"); + // HXML node = xmlGetChildByPath(hXml, tag, 0); + // char *type = node != nullptr ? mir_u2a(xmlGetText(node)) : nullptr; + + // mir_free(tag); + // tag = mir_a2u("event/sender"); + // node = xmlGetChildByPath(hXml, tag, 0); + // char *sender = node != nullptr ? mir_u2a(xmlGetText(node)) : nullptr; + // debugLogA("mainthread() (%x): XML Action type: %s.", this, type != nullptr ? type : "unknown"); + // // Avatar change notify + // if (type != nullptr && !mir_strcmp(type, "28")) { + // debugLogA("mainthread() (%x): Client %s changed his avatar.", this, sender); + // requestAvatarInfo(getcontact(atoi(sender), 0, 0, nullptr), 0); + // } + // mir_free(type); + // mir_free(sender); + // xmlDestroyNode(hXml); + // } + // mir_free(tag); + // mir_free(xmlAction); + // } + // break; case GG_EVENT_TYPING_NOTIFICATION: { -- cgit v1.2.3