diff libgaim/protocols/jabber/disco.c @ 15204: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
line wrap: on
line diff
--- a/libgaim/protocols/jabber/disco.c	Thu Dec 14 04:17:02 2006 +0000
+++ b/libgaim/protocols/jabber/disco.c	Thu Dec 14 04:56:54 2006 +0000
@@ -27,7 +27,7 @@
 #include "iq.h"
 #include "disco.h"
 #include "jabber.h"
-
+#include "roster.h"
 
 struct _jabber_disco_info_cb_data {
 	gpointer data;
@@ -262,8 +262,14 @@
 		if (!strcmp("google:mail:notify", var)) {
 			js->server_caps |= JABBER_CAP_GMAIL_NOTIFY;
 			jabber_gmail_init(js);
+		} else if (!strcmp("google:roster", var)) {
+			js->server_caps |= JABBER_CAP_GOOGLE_ROSTER;
+			jabber_google_roster_init(js);
 		}
 	}
+
+	if (!js->server_caps & JABBER_CAP_GOOGLE_ROSTER)
+		jabber_roster_request(js);
 }
 
 static void