summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-04-21 18:17:27 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-04-21 18:17:27 +0000
commita99e9d68043684eb88a8165d9bc98fc506aadb37 (patch)
tree0c680d0480a5b534ae5b0523f0b8e1751298a265
parentdcc4fcf3213dd367d102c159c1876de94d56cdbb (diff)
- Fixed "STATS e" showing random data sometimes
- Mino style corrections to m_stats.c git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@1842 82007160-df01-0410-b94d-b575c5fd34c7
-rw-r--r--modules/m_stats.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/m_stats.c b/modules/m_stats.c
index 1edeba0..d3935dc 100644
--- a/modules/m_stats.c
+++ b/modules/m_stats.c
@@ -484,8 +484,8 @@ stats_exempt(struct Client *source_p, int parc, char *parv[])
conf = arec->conf;
- sendto_one(source_p, form_str(RPL_STATSDLINE),
- from, to, 'e', conf->host, conf->reason /* XXX */);
+ sendto_one(source_p, form_str(RPL_STATSDLINE), from, to, 'e',
+ conf->host, "");
}
}
}
@@ -965,10 +965,9 @@ stats_tstats(struct Client *source_p, int parc, char *parv[])
{
const struct Client *target_p = NULL;
const dlink_node *ptr = NULL;
- struct ServerStatistics *sp;
struct ServerStatistics tmp;
+ struct ServerStatistics *sp = &tmp;
- sp = &tmp;
memcpy(sp, &ServerStats, sizeof(struct ServerStatistics));
/*