int
register_local_user(struct Client *client_p, struct Client *source_p, const char *username)
{
- struct ConfItem *aconf;
+ struct ConfItem *aconf, *xconf;
struct User *user = source_p->user;
char tmpstr2[IRCD_BUFSIZE];
char ipaddr[HOSTIPLEN];
/* kline exemption extends to xline too */
if(!IsExemptKline(source_p) &&
- find_xline(source_p->info, 1) != NULL)
+ (xconf = find_xline(source_p->info, 1)) != NULL)
{
ServerStats->is_ref++;
- add_reject(source_p);
+ add_reject(source_p, xconf->name, NULL);
exit_client(client_p, source_p, &me, "Bad user info");
return CLIENT_EXITED;
}
sendto_one_notice(source_p, ":*** Your IP address %s is listed in %s",
source_p->sockhost, source_p->preClient->dnsbl_listed->host);
source_p->preClient->dnsbl_listed->hits++;
- add_reject(source_p);
+ add_reject(source_p, NULL, NULL);
exit_client(client_p, source_p, &me, "*** Banned (DNS blacklist)");
return CLIENT_EXITED;
}
nick, source_p->hopcount + 1,
(long) source_p->tsinfo,
ubuf, source_p->username, source_p->host,
- user->server, source_p->info);
+ source_p->servptr->name, source_p->info);
}
else
sendto_server(client_p, NULL, NOCAPS, NOCAPS,
nick, source_p->hopcount + 1,
(long) source_p->tsinfo,
ubuf, source_p->username, source_p->host,
- user->server, source_p->info);
+ source_p->servptr->name, source_p->info);
if (IsDynSpoof(source_p))
{