From fd5579dbde9e7f56dc180a8eb53dec6f8455f2b5 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Thu, 20 Nov 2003 19:33:03 +0000 Subject: [PATCH] - Fixed a compile problem on alpha, reported by Hyperi (#0001374). - Made "operator count bug" not notice all opers (log only), unless in debugmode. --- Changes | 2 ++ src/s_misc.c | 2 ++ src/s_stats.c | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index a4d539d43..6827b99e6 100644 --- a/Changes +++ b/Changes @@ -2589,3 +2589,5 @@ seen. gmtime warning still there - Made /rehash reread botmotd and opermotd (#0001291). - Made OperOverride work for chanmode +Q (#0001370). - A few example.conf changes. +- Fixed a compile problem on alpha, reported by Hyperi (#0001374). +- Made "operator count bug" not notice all opers (log only), unless in debugmode. diff --git a/src/s_misc.c b/src/s_misc.c index 21910bbce..13db7f4a7 100644 --- a/src/s_misc.c +++ b/src/s_misc.c @@ -729,7 +729,9 @@ char text[2048]; "please report to UnrealIRCd team at http://bugs.unrealircd.org/", IRCstats.operators, counted, orig->name ? orig->name : "", orig->srvptr ? orig->srvptr->name : "", tag ? tag : ""); +#ifdef DEBUGMODE sendto_realops("%s", text); +#endif ircd_log(LOG_ERROR, "%s", text); IRCstats.operators = counted; } diff --git a/src/s_stats.c b/src/s_stats.c index bcab68fcf..f21c22c1f 100644 --- a/src/s_stats.c +++ b/src/s_stats.c @@ -897,7 +897,7 @@ int stats_mem(aClient *sptr, char *para) #if !defined(_WIN32) && !defined(_AMIGA) #ifdef __alpha sendto_one(sptr, ":%s %d %s :TOTAL: %d sbrk(0)-etext: %u", - me.name, RPL_STATSDEBUG, nick, tot, + me.name, RPL_STATSDEBUG, sptr->name, tot, (u_int)sbrk((size_t)0) - (u_int)sbrk0); #else sendto_one(sptr, ":%s %d %s :TOTAL: %ld sbrk(0)-etext: %lu",