diff libpurple/protocols/jabber/auth_plain.c @ 30271:a54e59c1c520

jabber: Only add the ga:client-uses-full-bind-result to gmail/googlemail domains I think this should be okay, but admittedly it might cause issues. Anyway, the previous one definitely caused issues with Punjab, which fails to stringify the namespaced attributes.
author Paul Aurich <paul@darkrain42.org>
date Sat, 01 May 2010 16:37:07 +0000
parents b94fd073187c
children a97ddee04b78
line wrap: on
line diff
--- a/libpurple/protocols/jabber/auth_plain.c	Sat May 01 05:53:50 2010 +0000
+++ b/libpurple/protocols/jabber/auth_plain.c	Sat May 01 16:37:07 2010 +0000
@@ -40,8 +40,11 @@
 	auth = xmlnode_new("auth");
 	xmlnode_set_namespace(auth, NS_XMPP_SASL);
 
-	xmlnode_set_attrib(auth, "xmlns:ga", "http://www.google.com/talk/protocol/auth");
-	xmlnode_set_attrib(auth, "ga:client-uses-full-bind-result", "true");
+	if (g_str_equal(js->user->domain, "gmail.com") ||
+			g_str_equal(js->user->domain, "googlemail.com")) {
+		xmlnode_set_attrib(auth, "xmlns:ga", "http://www.google.com/talk/protocol/auth");
+		xmlnode_set_attrib(auth, "ga:client-uses-full-bind-result", "true");
+	}
 
 	response = g_string_new("");
 	response = g_string_append_len(response, "\0", 1);