libpurple/protocols/jabber/google.c

changeset 17148
db0801f13aa8
parent 16988
1aaf51bf0f23
child 17322
507844deb2a3
equal deleted inserted replaced
17147:d5ec5f6ab84c 17148:db0801f13aa8
215 gboolean on_block_list = FALSE; 215 gboolean on_block_list = FALSE;
216 216
217 char *jid_norm = g_strdup(jabber_normalize(account, jid)); 217 char *jid_norm = g_strdup(jabber_normalize(account, jid));
218 218
219 const char *grt = xmlnode_get_attrib_with_namespace(item, "t", "google:roster"); 219 const char *grt = xmlnode_get_attrib_with_namespace(item, "t", "google:roster");
220 const char *subscription = xmlnode_get_attrib(item, "subscription");
221
222 if (!strcmp(subscription, "none")) {
223 /* The Google Talk servers will automatically add people from your Gmail address book
224 * with subscription=none. If we see someone with subscription=none, ignore them.
225 */
226 return FALSE;
227 }
220 228
221 while (list) { 229 while (list) {
222 if (!strcmp(jid_norm, (char*)list->data)) { 230 if (!strcmp(jid_norm, (char*)list->data)) {
223 on_block_list = TRUE; 231 on_block_list = TRUE;
224 break; 232 break;

mercurial