From: pk910 Date: Wed, 21 Dec 2011 20:42:35 +0000 (+0100) Subject: fixed ClientSocket::SOCKET_FLAG_READY: unset this flag when the bouncer gets disconnected X-Git-Tag: v5.3~127 X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=commitdiff_plain;h=b938f59f0413f2b4dd0afeb935f0afd4a6a3a502 fixed ClientSocket::SOCKET_FLAG_READY: unset this flag when the bouncer gets disconnected --- diff --git a/src/IRCParser.c b/src/IRCParser.c index 8631165..7166e2e 100644 --- a/src/IRCParser.c +++ b/src/IRCParser.c @@ -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; } }