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:
@@ -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
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user