diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2014-04-08 16:53:15 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2014-04-08 16:53:15 +0000 |
commit | 71c940dabf814ae6bd73b8259445dc8dabf042da (patch) | |
tree | 80be948f7a5e7a343b7a871ab21c5428b5dcec81 /modules | |
parent | 393924eaff285e9b6154126b58470f528bff4f14 (diff) |
- Fixed corrupted "STATS U" output
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@3284 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules')
-rw-r--r-- | modules/m_stats.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/m_stats.c b/modules/m_stats.c index 9452c10..023251c 100644 --- a/modules/m_stats.c +++ b/modules/m_stats.c @@ -102,7 +102,6 @@ report_confitem_types(struct Client *source_p, enum maskitem_type type) break; case CONF_ULINE: - shared = flag_table; DLINK_FOREACH(ptr, uconf_items.head) { conf = ptr->data; @@ -110,19 +109,20 @@ report_confitem_types(struct Client *source_p, enum maskitem_type type) p = buf; *p++ = 'c'; - for (; shared->type; ++shared) + for (shared = flag_table; shared->type; ++shared) if (shared->type & conf->flags) *p++ = shared->letter; else *p++ = ToLower(shared->letter); + *p = '\0'; + sendto_one(source_p, form_str(RPL_STATSULINE), me.name, source_p->name, conf->name, conf->user?conf->user: "*", conf->host?conf->host: "*", buf); } - shared = flag_table; DLINK_FOREACH(ptr, cluster_items.head) { conf = ptr->data; @@ -130,12 +130,14 @@ report_confitem_types(struct Client *source_p, enum maskitem_type type) p = buf; *p++ = 'C'; - for (; shared->type; ++shared) + for (shared = flag_table; shared->type; ++shared) if (shared->type & conf->flags) *p++ = shared->letter; else *p++ = ToLower(shared->letter); + *p = '\0'; + sendto_one(source_p, form_str(RPL_STATSULINE), me.name, source_p->name, conf->name, "*", "*", buf); |