changeset 7704:3d79f9cab273

[gaim-migrate @ 8349] Paco-Paco suggested this. It's a good idea. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 02 Dec 2003 21:36:08 +0000
parents e0e73a26f130
children 401deb1e1085
files src/protocols/jabber/auth.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/jabber/auth.c	Tue Dec 02 21:18:39 2003 +0000
+++ b/src/protocols/jabber/auth.c	Tue Dec 02 21:36:08 2003 +0000
@@ -79,7 +79,7 @@
 	if(digest_md5) {
 		xmlnode_set_attrib(auth, "mechanism", "DIGEST-MD5");
 		js->auth_type = JABBER_AUTH_DIGEST_MD5;
-	} else if(plain) {
+	} else if(plain && js->gsc != NULL) { /* only do plain if we're encrypted */
 		GString *response = g_string_new("");
 		char *enc_out;