From fb4525ab1917ae1eeda7d374a67352d17da73a70 Mon Sep 17 00:00:00 2001 From: codemastr Date: Sun, 5 Aug 2001 17:24:12 +0000 Subject: [PATCH] Fixed an oper-only-stats bug --- Changes | 3 ++- src/s_kline.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index 863cb8ea3..1b729a777 100644 --- a/Changes +++ b/Changes @@ -776,4 +776,5 @@ seen. gmtime warning still there - Fixed some more IPv6 stuff in httpd - Implimented snomask (similar to IRCu) and moved several usermodes to it - Added a config check to detect what order we should specify the SSL libraries in -- Fixed bug with SSL, detected properly and fixed by Chawmp \ No newline at end of file +- Fixed bug with SSL, detected properly and fixed by Chawmp +- Fixed an oper-only-stats bug diff --git a/src/s_kline.c b/src/s_kline.c index f54f11191..d6c93d668 100644 --- a/src/s_kline.c +++ b/src/s_kline.c @@ -397,7 +397,7 @@ void tkl_stats(aClient *cptr) Character: G, Z, K, z */ - if (!IsAnOper(cptr) && (strchr(OPER_ONLY_STATS, 'G') || strchr(OPER_ONLY_STATS, 'g'))) { + if (!IsAnOper(cptr) && OPER_ONLY_STATS && (strchr(OPER_ONLY_STATS, 'G') || strchr(OPER_ONLY_STATS, 'g'))) { sendto_one(cptr, err_str(ERR_NOPRIVILEGES), me.name, cptr->name); return; }