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; }