From 1a90484b65b11af682d57d2efb6783b3cdb5abb7 Mon Sep 17 00:00:00 2001 From: pk910 Date: Tue, 25 Oct 2011 16:59:06 +0200 Subject: [PATCH] don't send PASS command if theres no password set --- src/ClientSocket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ClientSocket.c b/src/ClientSocket.c index f9faf44..87871b8 100644 --- a/src/ClientSocket.c +++ b/src/ClientSocket.c @@ -158,7 +158,7 @@ int connect_socket(struct ClientSocket *client) { char sendBuf[512]; int len; - if(client->pass) { + if(client->pass && strcmp(client->pass, "")) { len = sprintf(sendBuf, "PASS :%s\n", client->pass); write_socket(client, sendBuf, len); } -- 2.20.1