X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fs_stats.c;h=9714157616944cec13960e3df27ca664e79f2bb7;hb=cf665d9eea076d336955e2b8f0da9d26f27a7e3d;hp=355537626a86747736a0b452614908310f6c0828;hpb=16d08739263298c2bf0d50525bb23a23b26e325f;p=ircu2.10.12-pk.git diff --git a/ircd/s_stats.c b/ircd/s_stats.c index 3555376..9714157 100644 --- a/ircd/s_stats.c +++ b/ircd/s_stats.c @@ -194,8 +194,11 @@ report_deny_list(struct Client* to) { const struct DenyConf* p = conf_get_deny_list(); for ( ; p; p = p->next) - send_reply(to, RPL_STATSKLINE, (p->flags & DENY_FLAGS_IP) ? 'k' : 'K', - p->hostmask, p->message, p->usermask); + send_reply(to, RPL_STATSKLINE, p->bits > 0 ? 'k' : 'K', + p->usermask ? p->usermask : "*", + p->hostmask ? p->hostmask : "*", + p->message ? p->message : "(none)", + p->realmask ? p->realmask : "*"); } /** Report K/k-lines to a user. @@ -246,9 +249,11 @@ stats_klines(struct Client *sptr, const struct StatDesc *sd, char *mask) (wilds && !mmatch(host, conf->hostmask) && (!user || !mmatch(user, conf->usermask)))) { - send_reply(sptr, RPL_STATSKLINE, - (conf->flags & DENY_FLAGS_IP) ? 'k' : 'K', - conf->hostmask, conf->message, conf->usermask); + send_reply(sptr, RPL_STATSKLINE, conf->bits > 0 ? 'k' : 'K', + conf->usermask ? conf->usermask : "*", + conf->hostmask ? conf->hostmask : "*", + conf->message ? conf->message : "(none)", + conf->realmask ? conf->realmask : "*"); if (--count == 0) return; }