libpurple/protocols/jabber/google.c

branch
next.minor
changeset 29628
7ba47b28bda9
parent 29538
f1c9c6791e98
parent 28757
055c0bc2a3dd
child 29642
ef61075f9587
--- a/libpurple/protocols/jabber/google.c	Sat Oct 31 17:49:11 2009 +0000
+++ b/libpurple/protocols/jabber/google.c	Sat Oct 31 17:52:54 2009 +0000
@@ -994,8 +994,9 @@
 
 	const char *grt = xmlnode_get_attrib_with_namespace(item, "t", "google:roster");
 	const char *subscription = xmlnode_get_attrib(item, "subscription");
+	const char *ask = xmlnode_get_attrib(item, "ask");
 
-	if (!subscription || !strcmp(subscription, "none")) {
+	if ((!subscription || !strcmp(subscription, "none")) && !ask) {
 		/* The Google Talk servers will automatically add people from your Gmail address book
 		 * with subscription=none. If we see someone with subscription=none, ignore them.
 		 */

mercurial