Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/buddy.c @ 25954: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 | cf29591fe78a |
children | e33aee62e537 |
comparison
equal
deleted
inserted
replaced
25953:cf29591fe78a | 25954:f2d533384535 |
---|---|
1636 JabberBuddyInfoResource *jbir = g_hash_table_lookup(jbi->resources, resource_name); | 1636 JabberBuddyInfoResource *jbir = g_hash_table_lookup(jbi->resources, resource_name); |
1637 if(jbir) { | 1637 if(jbir) { |
1638 jbir->idle_seconds = sec; | 1638 jbir->idle_seconds = sec; |
1639 } | 1639 } |
1640 } | 1640 } |
1641 /* if this idle time different from the one stored | 1641 /* Update the idle time of the buddy resource, if we got it. |
1642 in the JabberBuddyResource (as obtained via | 1642 This will correct the value when a server doesn't mark |
1643 <presence/>) update it. This is to correct the value | 1643 delayed presence and we got the presence when signing on */ |
1644 when a server doesn't mark delayed presence */ | |
1645 jb = jabber_buddy_find(js, from, FALSE); | 1644 jb = jabber_buddy_find(js, from, FALSE); |
1646 if (jb) { | 1645 if (jb) { |
1647 resource = jabber_get_resource(from); | 1646 resource = jabber_get_resource(from); |
1648 buddy_name = jabber_get_bare_jid(from); | 1647 buddy_name = jabber_get_bare_jid(from); |
1649 /* if the resource already has an idle time set, we | 1648 /* if the resource already has an idle time set, we |