summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_poll_processing.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/SkypeWeb/src/skype_poll_processing.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_poll_processing.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/protocols/SkypeWeb/src/skype_poll_processing.cpp b/protocols/SkypeWeb/src/skype_poll_processing.cpp
new file mode 100644
index 0000000000..4bf8b3e689
--- /dev/null
+++ b/protocols/SkypeWeb/src/skype_poll_processing.cpp
@@ -0,0 +1,12 @@
+#include "common.h"
+
+void CSkypeProto::ProcessUserPresenceRes(JSONNODE *node)
+{
+ debugLogA("CSkypeProto::ProcessUserPresenceRes");
+ ptrA selfLink(mir_t2a(ptrT(json_as_string(json_get(node, "selfLink")))));
+ ptrA status(mir_t2a(ptrT(json_as_string(json_get(node, "status")))));
+
+ char *skypename = ContactUrlToName(selfLink);
+ MCONTACT hContact = GetContact(skypename);
+ SetContactStatus(hContact, ID_STATUS_ONLINE);
+} \ No newline at end of file