From a99e9d68043684eb88a8165d9bc98fc506aadb37 Mon Sep 17 00:00:00 2001 From: michael Date: Sun, 21 Apr 2013 18:17:27 +0000 Subject: - 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 --- modules/m_stats.c | 7 +++---- 1 file 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)); /* -- cgit