fixing reject.c compilation + some changes I forgot in previous changeset

This commit is contained in:
Valery Yatsko 2008-04-02 16:53:21 +04:00
parent 9d948d2b6d
commit 58dfaed919
2 changed files with 1 additions and 3 deletions

View File

@ -24,7 +24,6 @@
*/
#include "stdinc.h"
#include "struct.h"
#include "client.h"
#include "s_conf.h"
#include "reject.h"
@ -34,7 +33,6 @@
#include "numeric.h"
#include "parse.h"
#include "hostmask.h"
#include "match.h"
static rb_patricia_tree_t *global_tree;
static rb_patricia_tree_t *reject_tree;

View File

@ -1030,7 +1030,7 @@ server_estab(struct Client *client_p)
{
if(client_p != serv_list.head->data || serv_list.head->next)
{
ServerStats->is_ref++;
ServerStats.is_ref++;
sendto_one(client_p, "ERROR :I'm a leaf not a hub");
return exit_client(client_p, client_p, client_p, "I'm a leaf");
}