Mercurial > pidgin
comparison libpurple/protocols/jabber/google.c @ 28435: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 | fa7f3426ed13 e3206d6da6c7 2702ca44d963 |
comparison
equal
deleted
inserted
replaced
28434:876ffa0f5465 | 28435:54755c2d6836 |
---|---|
992 | 992 |
993 char *jid_norm; | 993 char *jid_norm; |
994 | 994 |
995 const char *grt = xmlnode_get_attrib_with_namespace(item, "t", "google:roster"); | 995 const char *grt = xmlnode_get_attrib_with_namespace(item, "t", "google:roster"); |
996 const char *subscription = xmlnode_get_attrib(item, "subscription"); | 996 const char *subscription = xmlnode_get_attrib(item, "subscription"); |
997 | 997 const char *ask = xmlnode_get_attrib(item, "ask"); |
998 if (!subscription || !strcmp(subscription, "none")) { | 998 |
999 if ((!subscription || !strcmp(subscription, "none")) && !ask) { | |
999 /* The Google Talk servers will automatically add people from your Gmail address book | 1000 /* The Google Talk servers will automatically add people from your Gmail address book |
1000 * with subscription=none. If we see someone with subscription=none, ignore them. | 1001 * with subscription=none. If we see someone with subscription=none, ignore them. |
1001 */ | 1002 */ |
1002 return FALSE; | 1003 return FALSE; |
1003 } | 1004 } |