summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'protocols')
-rw-r--r--protocols/SkypeWeb/src/skype_db.cpp8
-rw-r--r--protocols/SkypeWeb/src/skype_events.cpp7
2 files changed, 9 insertions, 6 deletions
diff --git a/protocols/SkypeWeb/src/skype_db.cpp b/protocols/SkypeWeb/src/skype_db.cpp
index 06ff6fa8d5..e297458ed0 100644
--- a/protocols/SkypeWeb/src/skype_db.cpp
+++ b/protocols/SkypeWeb/src/skype_db.cpp
@@ -163,6 +163,14 @@ void CSkypeProto::InitDBEvents()
dbEventType.descr = Translate("URI object");
CallService(MS_DB_EVENT_REGISTERTYPE, 0, (LPARAM)&dbEventType);
+ dbEventType.eventType = SKYPE_DB_EVENT_TYPE_MOJI;
+ dbEventType.descr = Translate("Moji");
+ CallService(MS_DB_EVENT_REGISTERTYPE, 0, (LPARAM)&dbEventType);
+
+ dbEventType.eventType = SKYPE_DB_EVENT_TYPE_FILE;
+ dbEventType.descr = Translate("File");
+ CallService(MS_DB_EVENT_REGISTERTYPE, 0, (LPARAM)&dbEventType);
+
dbEventType.eventType = SKYPE_DB_EVENT_TYPE_UNKNOWN;
dbEventType.descr = Translate("Unknown event");
CallService(MS_DB_EVENT_REGISTERTYPE, 0, (LPARAM)&dbEventType);
diff --git a/protocols/SkypeWeb/src/skype_events.cpp b/protocols/SkypeWeb/src/skype_events.cpp
index f48cbb1e9f..b0e4466ad6 100644
--- a/protocols/SkypeWeb/src/skype_events.cpp
+++ b/protocols/SkypeWeb/src/skype_events.cpp
@@ -73,11 +73,8 @@ INT_PTR CSkypeProto::GetEventText(WPARAM, LPARAM lParam)
if (xmlDuration != NULL)
{
callDuration = _ttol(xmlGetText(xmlDuration));
- xmlDestroyNode(xmlDuration);
- xmlDestroyNode(xmlPart);
break;
}
- xmlDestroyNode(xmlPart);
}
}
@@ -124,7 +121,6 @@ INT_PTR CSkypeProto::GetEventText(WPARAM, LPARAM lParam)
szText.AppendFormat(Translate("File transfer:\n\tFile name: %s \n\tSize: %lld bytes \n"), fileName, fileSize);
}
- xmlDestroyNode(xmlNode);
}
}
xmlDestroyNode(xml);
@@ -146,8 +142,7 @@ INT_PTR CSkypeProto::GetEventText(WPARAM, LPARAM lParam)
HXML xmlA = xmlGetChildByPath(xml, _T("a"), 0);
if (xmlA != NULL)
{
- szText += _T2A(xmlGetAttrValue(xmlA, _T("href")));
- xmlDestroyNode(xmlA);
+ szText += T2Utf(xmlGetAttrValue(xmlA, _T("href")));
}
xmlDestroyNode(xml);
}