diff src/server.c @ 3789:fb519383a058

[gaim-migrate @ 3929] IRC passwd patch from Chip. Fixed a compile warning in conversation.c. Nathan, tell me if this breaks anything ;-) committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Tue, 22 Oct 2002 23:31:49 +0000
parents aed40c72c818
children 2567aabdf624
line wrap: on
line diff
--- a/src/server.c	Tue Oct 22 23:18:45 2002 +0000
+++ b/src/server.c	Tue Oct 22 23:31:49 2002 +0000
@@ -60,7 +60,8 @@
 #endif
 
 	if (p->login) {
-		if (!strlen(user->password) && !(p->options & OPT_PROTO_NO_PASSWORD)) {
+		if (!strlen(user->password) && !(p->options & OPT_PROTO_NO_PASSWORD) &&
+			!(p->options & OPT_PROTO_PASSWORD_OPTIONAL)) {
 			do_error_dialog(_("Please enter your password"), NULL, GAIM_ERROR);
 			return;
 		}