comparison libpurple/protocols/jabber/presence.c @ 25253:f2d533384535

Updated a comment to describe what the actually does Removed a comment about initial presence
author Marcus Lundblad <ml@update.uu.se>
date Thu, 25 Dec 2008 13:21:27 +0000
parents b1a16f0efec2
children a9b078297b69
comparison
equal deleted inserted replaced
25252:cf29591fe78a 25253:f2d533384535
422 422
423 g_free(userdata->from); 423 g_free(userdata->from);
424 g_free(userdata); 424 g_free(userdata);
425 } 425 }
426 426
427 /* would need to add some detection to determine if a
428 <presence/> packet is part of the "initial" presence the server
429 sends us, this way we could disregard a buddy's idle time in case the server
430 does not set <delayed/> on delayed presence. This would avoid
431 showing an incorrect idle time */
432 void jabber_presence_parse(JabberStream *js, xmlnode *packet) 427 void jabber_presence_parse(JabberStream *js, xmlnode *packet)
433 { 428 {
434 const char *from = xmlnode_get_attrib(packet, "from"); 429 const char *from = xmlnode_get_attrib(packet, "from");
435 const char *type = xmlnode_get_attrib(packet, "type"); 430 const char *type = xmlnode_get_attrib(packet, "type");
436 const char *real_jid = NULL; 431 const char *real_jid = NULL;