comparison libpurple/protocols/jabber/google.c @ 17235:a7c07b57f3e4

This should be better
author Sean Egan <seanegan@gmail.com>
date Thu, 24 May 2007 22:39:22 +0000
parents 0018ab54be9c
children 3a1a9e8c1506
comparison
equal deleted inserted replaced
17234:752d16a0de51 17235:a7c07b57f3e4
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"); 220 const char *subscription = xmlnode_get_attrib(item, "subscription");
221 221
222 if (subscription && !strcmp(subscription, "none")) { 222 if (!subscription || !strcmp(subscription, "none")) {
223 /* The Google Talk servers will automatically add people from your Gmail address book 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. 224 * with subscription=none. If we see someone with subscription=none, ignore them.
225 */ 225 */
226 return FALSE; 226 return FALSE;
227 } 227 }