# HG changeset patch # User Marcus Lundblad # Date 1230211287 0 # Node ID f2d5333845350947946bed9aaa7f498b5ad021ca # Parent cf29591fe78a5f42dd2753f6efc248edc0644df6 Updated a comment to describe what the actually does Removed a comment about initial presence diff -r cf29591fe78a -r f2d533384535 libpurple/protocols/jabber/buddy.c --- a/libpurple/protocols/jabber/buddy.c Thu Dec 25 10:48:49 2008 +0000 +++ b/libpurple/protocols/jabber/buddy.c Thu Dec 25 13:21:27 2008 +0000 @@ -1638,10 +1638,9 @@ jbir->idle_seconds = sec; } } - /* if this idle time different from the one stored - in the JabberBuddyResource (as obtained via - ) update it. This is to correct the value - when a server doesn't mark delayed presence */ + /* Update the idle time of the buddy resource, if we got it. + This will correct the value when a server doesn't mark + delayed presence and we got the presence when signing on */ jb = jabber_buddy_find(js, from, FALSE); if (jb) { resource = jabber_get_resource(from); diff -r cf29591fe78a -r f2d533384535 libpurple/protocols/jabber/presence.c --- a/libpurple/protocols/jabber/presence.c Thu Dec 25 10:48:49 2008 +0000 +++ b/libpurple/protocols/jabber/presence.c Thu Dec 25 13:21:27 2008 +0000 @@ -424,11 +424,6 @@ g_free(userdata); } -/* would need to add some detection to determine if a - packet is part of the "initial" presence the server - sends us, this way we could disregard a buddy's idle time in case the server - does not set on delayed presence. This would avoid - showing an incorrect idle time */ void jabber_presence_parse(JabberStream *js, xmlnode *packet) { const char *from = xmlnode_get_attrib(packet, "from");