# HG changeset patch # User Sean Egan # Date 1179955644 0 # Node ID 1863cdac4be395d2a66ebaaae8600f7a8acafd07 # Parent 580c6c5d9480da8da9c8f02f9ee03753dc01bc2d If Google Talk tells you a roster item as a none subscription, we probably don't ever want to show it. Fixes #1189 diff -r 580c6c5d9480 -r 1863cdac4be3 libpurple/protocols/jabber/google.c --- a/libpurple/protocols/jabber/google.c Wed May 23 21:15:54 2007 +0000 +++ b/libpurple/protocols/jabber/google.c Wed May 23 21:27:24 2007 +0000 @@ -217,6 +217,14 @@ char *jid_norm = g_strdup(jabber_normalize(account, jid)); const char *grt = xmlnode_get_attrib_with_namespace(item, "t", "google:roster"); + const char *subscription = xmlnode_get_attrib(item, "subscription"); + + if (!strcmp(subscription, "none")) { + /* 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. + */ + return FALSE; + } while (list) { if (!strcmp(jid_norm, (char*)list->data)) {