Mercurial > pidgin.yaz
diff libpurple/protocols/jabber/auth_plain.c @ 30295:77aba27f64da
merged from im.pidgin.pidgin.
removed our modification to jabber file transfer for now.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Wed, 05 May 2010 15:42:34 +0900 |
parents | a97ddee04b78 |
children | 3f5ff1ea4802 |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/auth_plain.c Wed Apr 28 19:22:17 2010 +0900 +++ b/libpurple/protocols/jabber/auth_plain.c Wed May 05 15:42:34 2010 +0900 @@ -40,13 +40,16 @@ 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); + response = g_string_append_c(response, '\0'); response = g_string_append(response, js->user->node); - response = g_string_append_len(response, "\0", 1); + response = g_string_append_c(response, '\0'); response = g_string_append(response, purple_connection_get_password(js->gc));