summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTingPing <tngpng@gmail.com>2013-07-11 05:58:10 -0400
committerTingPing <tngpng@gmail.com>2013-07-11 05:58:10 -0400
commitbe1e6bde65fc1e7a4d93e898cc9d58dd4f042d41 (patch)
treee3713dad671941b683f75ac9451891de114d4a34
parentf113008c7f4c6c45119a05b2a3d2237047d25425 (diff)
Fix requesting sasl multiple times
-rw-r--r--src/common/inbound.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/inbound.c b/src/common/inbound.c
index 1fa53cca..f57207d1 100644
--- a/src/common/inbound.c
+++ b/src/common/inbound.c
@@ -1679,7 +1679,7 @@ inbound_cap_ls (server *serv, char *nick, char *extensions_str,
 		
 		/* if the SASL password is set AND auth mode is set to SASL, request SASL auth */
 		if (serv->loginmethod == LOGIN_SASL
-			 && strcmp (extension, "sasl") != 0
+			 && strcmp (extension, "sasl") == 0
 			 && strlen (serv->password) != 0)
 		{
 			strcat (buffer, "sasl ");