38 |
|
#include "motd.h" |
39 |
|
#include "numeric.h" |
40 |
|
#include "conf.h" |
41 |
+ |
#include "conf_gecos.h" |
42 |
|
#include "log.h" |
43 |
|
#include "server.h" |
44 |
|
#include "send.h" |
286 |
|
static int |
287 |
|
check_xline(struct Client *source_p) |
288 |
|
{ |
289 |
< |
struct MaskItem *conf = NULL; |
289 |
> |
const struct GecosItem *gecos = NULL; |
290 |
|
|
291 |
|
if (HasFlag(source_p, FLAGS_EXEMPTXLINE)) |
292 |
|
return 0; |
293 |
|
|
294 |
< |
if ((conf = find_matching_name_conf(CONF_XLINE, source_p->info, NULL, NULL, 0))) |
294 |
> |
if ((gecos = gecos_find(source_p->info, match))) |
295 |
|
{ |
295 |
– |
++conf->count; |
296 |
|
sendto_realops_flags(UMODE_REJ, L_ALL, SEND_NOTICE, |
297 |
|
"X-line Rejecting [%s] [%s], user %s [%s]", |
298 |
< |
source_p->info, conf->reason, |
298 |
> |
source_p->info, gecos->reason, |
299 |
|
get_client_name(source_p, HIDE_IP), |
300 |
|
source_p->sockhost); |
301 |
|
|