* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*
- * $Id: client.c 1861 2006-08-26 23:21:42Z jilles $
+ * $Id: client.c 3514 2007-06-06 16:25:21Z nenolod $
*/
#include "stdinc.h"
#include "config.h"
#include "msg.h"
#include "monitor.h"
#include "blacklist.h"
+#include "reject.h"
#define DEBUG_EXITED_CLIENTS
target_p->name, (unsigned int) target_p->status,
target_p->flags, target_p->flags2, target_p->handler);
sendto_realops_snomask(SNO_GENERAL, L_ALL,
- "Please report this to the ratbox developers!");
+ "Please report this to the charybdis developers!");
found++;
}
}
abt->client->name, (unsigned int) abt->client->status,
abt->client->flags, abt->client->flags2, abt->client->handler);
sendto_realops_snomask(SNO_GENERAL, L_ALL,
- "Please report this to the ratbox developers!");
+ "Please report this to the charybdis developers!");
continue;
}
}
{
delete_auth_queries(source_p);
client_flush_input(source_p);
+ del_unknown_ip(source_p);
dlinkDelete(&source_p->localClient->tnode, &unknown_list);
if(!IsIOError(source_p))
- sendto_one(source_p, "ERROR :Closing Link: 127.0.0.1 (%s)", comment);
+ sendto_one(source_p, "ERROR :Closing Link: %s (%s)",
+ source_p->user != NULL ? source_p->host : "127.0.0.1",
+ comment);
close_connection(source_p);
del_from_hostname_hash(source_p->host, source_p);
del_from_client_hash(source_p->name, source_p);
remove_client_from_list(source_p);
- free_pre_client(source_p);
SetDead(source_p);
dlinkAddAlloc(source_p, &dead_list);
source_p->name, comment);
}
- if(source_p->localClient->ctrlfd >= 0)
- {
- comm_close(source_p->localClient->ctrlfd);
- source_p->localClient->ctrlfd = -1;
- }
-
if(source_p->servptr && source_p->servptr->serv)
dlinkDelete(&source_p->lnode, &source_p->servptr->serv->servers);
else
client_p->localClient->fd = -1;
}
- if(HasServlink(client_p))
+ if(-1 < client_p->localClient->ctrlfd)
{
- if(client_p->localClient->fd > -1)
- {
- comm_close(client_p->localClient->ctrlfd);
- client_p->localClient->ctrlfd = -1;
- }
+ comm_close(client_p->localClient->ctrlfd);
+ client_p->localClient->ctrlfd = -1;
}
linebuf_donebuf(&client_p->localClient->buf_sendq);