fixed ClientSocket::SOCKET_FLAG_READY: unset this flag when the bouncer gets disconnected
[NeonServV5.git] / src / IRCParser.c
index 8631165e270fcedb7a74f3996804c6caf01ff571..7166e2eae5306764eb2c9b0e3b11393d910c5ccb 100644 (file)
@@ -332,6 +332,7 @@ static IRC_CMD(raw_quit) {
         struct ClientSocket *bot;
         for(bot = getBots(0, NULL); bot; bot = getBots(0, bot)) {
             if(bot->user == user) {
+                bot->flags &= ~SOCKET_FLAG_READY;
                 bot->user = NULL;
                 break;
             }
@@ -380,6 +381,7 @@ void bot_disconnect(struct ClientSocket *client) {
             }
         }
         client->user = NULL;
+        client->flags &= ~SOCKET_FLAG_READY;
     }
 }