fixed last commit
[NeonServV5.git] / ClientSocket.c
index 25d697f8e80a6b1b7ad52ab4840076121c3aaa96..59f272a2fbd11a3fbe92db7825c24cc86f6ba0ec 100644 (file)
@@ -33,11 +33,13 @@ struct ClientSocket* create_socket(char *host, int port, char *pass, struct User
     }
     client->host = strdup(host);
     client->port = port;
+    printf("Connect: %s:%d", client->host, client->port);
     client->pass = (pass == NULL ? NULL : strdup(pass));
     client->user = user;
     client->flags = 0;
     client->bufferpos = 0;
        client->botid = 0;
+    client->clientid = 0;
     client->next = sockets->data;
     sockets->data = client;
     return client;