projects
/
NeonServV5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff4d055
)
fixed ClientSocket::SOCKET_FLAG_READY: unset this flag when the bouncer gets disconnected
author
pk910
<philipp@zoelle1.de>
Wed, 21 Dec 2011 20:42:35 +0000
(21:42 +0100)
committer
pk910
<philipp@zoelle1.de>
Wed, 21 Dec 2011 20:42:35 +0000
(21:42 +0100)
src/IRCParser.c
patch
|
blob
|
history
diff --git
a/src/IRCParser.c
b/src/IRCParser.c
index 8631165e270fcedb7a74f3996804c6caf01ff571..7166e2eae5306764eb2c9b0e3b11393d910c5ccb 100644
(file)
--- 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;
}
}