1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-05 10:53:12 +02:00

Fixed an oper-only-stats bug

This commit is contained in:
codemastr
2001-08-05 17:24:12 +00:00
parent c64debf500
commit fb4525ab19
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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
- Fixed bug with SSL, detected properly and fixed by Chawmp
- Fixed an oper-only-stats bug
+1 -1
View File
@@ -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;
}