comparison libgaim/protocols/jabber/disco.c @ 15203:f814b2df9cce

[gaim-migrate @ 17993] Blocking on Google Talk. Our Privacy API sucks so bad that even with no prior support for blocking in Jabber, this has no interface changes. If someone wanted to implement the deprecated Jabber privacy lists API, though, that would be ok by me. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Thu, 14 Dec 2006 04:56:54 +0000
parents fe05223b5d04
children b5dff06f9c84
comparison
equal deleted inserted replaced
15202:b8ae75fa8d67 15203:f814b2df9cce
25 #include "buddy.h" 25 #include "buddy.h"
26 #include "google.h" 26 #include "google.h"
27 #include "iq.h" 27 #include "iq.h"
28 #include "disco.h" 28 #include "disco.h"
29 #include "jabber.h" 29 #include "jabber.h"
30 30 #include "roster.h"
31 31
32 struct _jabber_disco_info_cb_data { 32 struct _jabber_disco_info_cb_data {
33 gpointer data; 33 gpointer data;
34 JabberDiscoInfoCallback *callback; 34 JabberDiscoInfoCallback *callback;
35 }; 35 };
260 continue; 260 continue;
261 261
262 if (!strcmp("google:mail:notify", var)) { 262 if (!strcmp("google:mail:notify", var)) {
263 js->server_caps |= JABBER_CAP_GMAIL_NOTIFY; 263 js->server_caps |= JABBER_CAP_GMAIL_NOTIFY;
264 jabber_gmail_init(js); 264 jabber_gmail_init(js);
265 } 265 } else if (!strcmp("google:roster", var)) {
266 } 266 js->server_caps |= JABBER_CAP_GOOGLE_ROSTER;
267 jabber_google_roster_init(js);
268 }
269 }
270
271 if (!js->server_caps & JABBER_CAP_GOOGLE_ROSTER)
272 jabber_roster_request(js);
267 } 273 }
268 274
269 static void 275 static void
270 jabber_disco_server_items_result_cb(JabberStream *js, xmlnode *packet, gpointer data) 276 jabber_disco_server_items_result_cb(JabberStream *js, xmlnode *packet, gpointer data)
271 { 277 {