diff options
author | Goraf <22941576+Goraf@users.noreply.github.com> | 2018-01-10 13:27:54 +0100 |
---|---|---|
committer | Goraf <22941576+Goraf@users.noreply.github.com> | 2018-01-19 01:39:33 +0100 |
commit | 97bb7e79c15952e7f9bf47caef4e3c09dd63c8df (patch) | |
tree | b501cec701c8f98f738b3157f9195c090981d072 /protocols/Gadu-Gadu/src/core.cpp | |
parent | 7f1d5f6915ecfbb804319d33e4712455def63182 (diff) |
Gadu-Gadu: complete update to libgadu-1.10.1-post
Diffstat (limited to 'protocols/Gadu-Gadu/src/core.cpp')
-rw-r--r-- | protocols/Gadu-Gadu/src/core.cpp | 60 |
1 files changed, 30 insertions, 30 deletions
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:
{
|