projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
don't send PASS command if theres no password set
[NeonServV5.git]
/
src
/
ClientSocket.c
diff --git
a/src/ClientSocket.c
b/src/ClientSocket.c
index f9faf44807eaf8b7f896704409ef8dc2e529e738..87871b849bf0b75fcf143beadb68053a1f311d14 100644
(file)
--- 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);
}