X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2FIRCParser.c;h=b525a7d95dd3d63652ab176304de80168d8943a2;hb=bb5692b9cbff069abbf9573c81e86c3cd2061ceb;hp=8631165e270fcedb7a74f3996804c6caf01ff571;hpb=325de2e651ca95ad03ee333ed92a737affad3fce;p=NeonServV5.git diff --git a/src/IRCParser.c b/src/IRCParser.c index 8631165..b525a7d 100644 --- a/src/IRCParser.c +++ b/src/IRCParser.c @@ -1,5 +1,5 @@ -/* IRCParser.c - NeonServ v5.2 - * Copyright (C) 2011 Philipp Kreil (pk910) +/* IRCParser.c - NeonServ v5.3 + * 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 @@ -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; } }