diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-03-31 18:37:50 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-03-31 18:37:50 +0000 |
commit | f9e66715bee0af7f9b1f2698da1fe11c35479210 (patch) | |
tree | 4cd3f42a1fd45ae54fa623f8758cbdd13d468b8c /protocols/SkypeWeb/src/skype_poll_processing.cpp | |
parent | d3a10049eee36dc0c451cbed542314a94f62ab3c (diff) |
SteamWeb: contact's status support (patch from MikalaiR)
git-svn-id: http://svn.miranda-ng.org/main/trunk@12576 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_poll_processing.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_poll_processing.cpp | 12 |
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 |