Mercurial > pidgin.yaz
diff libpurple/protocols/jabber/google.c @ 28808:54755c2d6836
jabber: Don't ignore Google buddies with subscription="none", but ask="subscribe".
Refs #7458. (Partially fixes it)
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Mon, 26 Oct 2009 02:17:54 +0000 |
parents | 63dc67b32577 |
children | 3e5a37c743df fa7f3426ed13 e3206d6da6c7 2702ca44d963 |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/google.c Mon Oct 26 00:00:24 2009 +0000 +++ b/libpurple/protocols/jabber/google.c Mon Oct 26 02:17: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. */