*** VERSION 5.3.0 ***
[NeonServV5.git] / src / IRCParser.c
index 8631165e270fcedb7a74f3996804c6caf01ff571..b95d8f659f2f613f7860efb6b5053ea20129e259 100644 (file)
@@ -1,4 +1,4 @@
-/* IRCParser.c - NeonServ v5.2
+/* IRCParser.c - NeonServ v5.3
  * Copyright (C) 2011  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
@@ -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;
     }
 }