cpw.darkrain42.xmpp.iq-handlers: d5d84329: Request time information from a resource...

paul at darkrain42.org paul at darkrain42.org
Sun Feb 8 15:25:28 EST 2009


-----------------------------------------------------------------
Revision: d5d8432928806878610ffc4292e088148b7f0dbb
Ancestor: 71472efa8c0b361169eb3e31c1dfaee75fdc67a1
Author: paul at darkrain42.org
Date: 2009-02-08T16:55:29
Branch: im.pidgin.cpw.darkrain42.xmpp.iq-handlers
URL: http://d.pidgin.im/viewmtn/revision/info/d5d8432928806878610ffc4292e088148b7f0dbb

Modified files:
        libpurple/protocols/jabber/buddy.c

ChangeLog: 

Request time information from a resource if we don't have caps for it

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/buddy.c	6ecb104068f8e220209ad9f0a6b476202c133b9a
+++ libpurple/protocols/jabber/buddy.c	c8a4d4edfd81cf96accc434be375f9c435932c12
@@ -1830,7 +1830,8 @@ static void jabber_buddy_get_info_for_ji
 		}
 
 		if (jbr->tz_off == PURPLE_NO_TZ_OFF &&
-				jabber_resource_has_capability(jbr, "urn:xmpp:time")) {
+				(!jbr->caps ||
+				 	jabber_resource_has_capability(jbr, "urn:xmpp:time"))) {
 			xmlnode *child;
 			iq = jabber_iq_new(js, JABBER_IQ_GET);
 			xmlnode_set_attrib(iq->node, "to", full_jid);


More information about the Commits mailing list