47 |
|
#include "s_user.h" |
48 |
|
#include "msgq.h" |
49 |
|
#include "ioengine.h" |
50 |
+ |
#include "dbuf.h" |
51 |
|
|
52 |
|
|
53 |
|
dlink_list connection_list; |
652 |
|
return exit_client(client_p, client_p, "Excess Flood"); |
653 |
|
|
654 |
|
while (DBufLength(&client_p->localClient->recvQ) && !NoNewLine(client_p) && |
655 |
< |
(IsTrusted(client_p) || cli_since(client_p) - CurrentTime < 10)) |
655 |
> |
(IsTrusted(client_p) || client_p->localClient->since - CurrentTime < 10)) |
656 |
|
{ |
657 |
|
dolen = dbuf_getmsg(&client_p->localClient->recvQ, |
658 |
|
client_p->localClient->buffer, IRCD_BUFSIZE); |
855 |
|
|
856 |
|
/*FALLTHROUGH*/ |
857 |
|
case ET_EOF: /* End of file on socket */ |
858 |
< |
SetFlag(client_p, FLAGS_DEADSOCKET); |
858 |
> |
AddFlag(client_p, FLAGS_DEADSOCKET); |
859 |
|
|
860 |
|
if ((IsServer(client_p) || IsHandshake(client_p)) && client_p->localClient->error == 0) |
861 |
|
{ |
862 |
|
exit_client_msg(client_p, client_p, "Server %s closed the connection (%s)", |
863 |
< |
client_p->name, client_p->servptr->->last_error_msg); |
863 |
> |
client_p->name, client_p->servptr->last_error_msg); |
864 |
|
return; |
865 |
|
} |
866 |
|
else |