X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2FClientSocket.c;h=2c77b080207e1eb607bda3eafbc241c8f6e672d0;hb=c575e458c6257e75b97884847143b20965a5dfda;hp=f9faf44807eaf8b7f896704409ef8dc2e529e738;hpb=7e014f259fb68794e5e462149d589f90db649d41;p=NeonServV5.git diff --git a/src/ClientSocket.c b/src/ClientSocket.c index f9faf44..2c77b08 100644 --- a/src/ClientSocket.c +++ b/src/ClientSocket.c @@ -1,4 +1,4 @@ -/* ClientSocket.c - NeonServ v5.1 +/* ClientSocket.c - NeonServ v5.2 * Copyright (C) 2011 Philipp Kreil (pk910) * * This program is free software: you can redistribute it and/or modify @@ -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); }