375 |
|
check_xline(struct Client *source_p) |
376 |
|
{ |
377 |
|
struct MaskItem *conf = NULL; |
378 |
– |
const char *reason = NULL; |
378 |
|
|
379 |
|
if ((conf = find_matching_name_conf(CONF_XLINE, source_p->info, NULL, NULL, 0))) |
380 |
|
{ |
381 |
|
++conf->count; |
383 |
– |
|
384 |
– |
if (conf->reason) |
385 |
– |
reason = conf->reason; |
386 |
– |
else |
387 |
– |
reason = CONF_NOREASON; |
388 |
– |
|
382 |
|
sendto_realops_flags(UMODE_REJ, L_ALL, SEND_NOTICE, |
383 |
|
"X-line Rejecting [%s] [%s], user %s [%s]", |
384 |
< |
source_p->info, reason, |
384 |
> |
source_p->info, conf->reason, |
385 |
|
get_client_name(source_p, HIDE_IP), |
386 |
|
source_p->sockhost); |
387 |
|
|