Another year is about to end... So we have to update these damn copyright information :P
[NeonServV5.git] / src / ClientSocket.c
index a108941c197685e5e0ca7f610b70d8f442dc25cd..2897d9d8ca722f6b5dceada83a71e792baf5082d 100644 (file)
@@ -1,5 +1,5 @@
 /* ClientSocket.c - NeonServ v5.3
- * Copyright (C) 2011  Philipp Kreil (pk910)
+ * Copyright (C) 2011-2012  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -269,8 +269,6 @@ int close_socket(struct ClientSocket *client) {
         char quitbuf[MAXLEN];
         int quitlen = sprintf(quitbuf, "QUIT :[NeonServ %s.%d] disconnect requested.\n", NEONSERV_VERSION, patchlevel);
         write_socket_force(client, quitbuf, quitlen);
-        close(client->sock);
-        bot_disconnect(client);
     }
     client->flags &= ~(SOCKET_FLAG_READY | SOCKET_FLAG_RECONNECT);
     client->flags |= SOCKET_FLAG_QUITTED | SOCKET_FLAG_DEAD;