mirror of
https://github.com/anope/anope.git
synced 2026-07-10 02:43:14 +02:00
Cleaned up some things, made the protocol modules use some basic inheritance to cut back on their code duplication. More work can be done in the future to remove even more of it.
This commit is contained in:
@@ -49,7 +49,7 @@ class CommandNSList : public Command
|
||||
|
||||
suspended = nsnoexpire = forbidden = unconfirmed = false;
|
||||
|
||||
if (Config->NSListOpersOnly && !is_oper(u)) /* reverse the help logic */
|
||||
if (Config->NSListOpersOnly && !u->HasMode(UMODE_OPER)) /* reverse the help logic */
|
||||
{
|
||||
source.Reply(ACCESS_DENIED);
|
||||
return MOD_STOP;
|
||||
|
||||
Reference in New Issue
Block a user