blob: 4bf8b3e6895726dff91846644bab5ab94153176c (
plain)
1
2
3
4
5
6
7
8
9
10
11
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);
}
|