changeset 26939:657d42e865dd

merge of 'f9080d0b3274907da710c3d4d85669464e418ba4' and 'f9a68099082693adb096e95d47ed2e07d624f526'
author Paul Aurich <paul@darkrain42.org>
date Sun, 10 May 2009 22:07:22 +0000
parents 0b97f73fa3d2 (current diff) c837cf614adc (diff)
children 88f1db1da582
files libpurple/protocols/jabber/google.c
diffstat 6 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/buddy.c	Sun May 10 22:06:08 2009 +0000
+++ b/libpurple/protocols/jabber/buddy.c	Sun May 10 22:07:22 2009 +0000
@@ -1741,7 +1741,7 @@
 		g_free(full_jid);
 	}
 
-	if (!jb->resources) {
+	if (!jb->resources && strchr(jid, '/') == NULL) {
 		/* user is offline, send a jabber:iq:last to find out last time online */
 		iq = jabber_iq_new_query(js, JABBER_IQ_GET, "jabber:iq:last");
 		xmlnode_set_attrib(iq->node, "to", jid);
--- a/libpurple/protocols/jabber/disco.h	Sun May 10 22:06:08 2009 +0000
+++ b/libpurple/protocols/jabber/disco.h	Sun May 10 22:07:22 2009 +0000
@@ -1,5 +1,5 @@
 /**
- * @file iq.h JabberID handlers
+ * @file disco.h service discovery handlers
  *
  * purple
  *
--- a/libpurple/protocols/jabber/google.c	Sun May 10 22:06:08 2009 +0000
+++ b/libpurple/protocols/jabber/google.c	Sun May 10 22:07:22 2009 +0000
@@ -764,7 +764,8 @@
 
 	/* Acknowledge the notification */
 	iq = jabber_iq_new(js, JABBER_IQ_RESULT);
-	xmlnode_set_attrib(iq->node, "to", from);
+	if (from)
+		xmlnode_set_attrib(iq->node, "to", from);
 	xmlnode_set_attrib(iq->node, "id", id);
 	jabber_iq_send(iq);
 
--- a/libpurple/protocols/jabber/oob.h	Sun May 10 22:06:08 2009 +0000
+++ b/libpurple/protocols/jabber/oob.h	Sun May 10 22:07:22 2009 +0000
@@ -1,5 +1,5 @@
 /**
- * @file jutil.h utility functions
+ * @file oob.h out-of-band transfer functions
  *
  * purple
  *
--- a/libpurple/protocols/jabber/ping.h	Sun May 10 22:06:08 2009 +0000
+++ b/libpurple/protocols/jabber/ping.h	Sun May 10 22:07:22 2009 +0000
@@ -1,5 +1,5 @@
 /**
- * @file ping.h utility functions
+ * @file ping.h ping functions
  *
  * purple
  *
--- a/libpurple/protocols/jabber/si.h	Sun May 10 22:06:08 2009 +0000
+++ b/libpurple/protocols/jabber/si.h	Sun May 10 22:07:22 2009 +0000
@@ -1,5 +1,5 @@
 /**
- * @file jutil.h utility functions
+ * @file si.h SI transfer functions
  *
  * purple
  *