diff options
author | Adam <Adam@anope.org> | 2011-12-12 15:26:59 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-12-12 15:26:59 -0500 |
commit | 255a8da347298133965247156edb1693aa40bc21 (patch) | |
tree | 6bfe4bf97b5c81c22ec23d5c1cc71e8ac75d360c /src/users.cpp | |
parent | 4211dcf6f9ad2d117edcc0d1dfe210170dfd0cec (diff) |
Added oper:require_oper configuration option
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp index e134e5af5..c36547adb 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -464,6 +464,8 @@ bool User::IsServicesOper() if (!this->nc || !this->nc->o) // No opertype. return false; + else if (this->nc->o->require_oper && !this->HasMode(UMODE_OPER)) + return false; else if (!this->nc->o->certfp.empty() && this->fingerprint != this->nc->o->certfp) // Certfp mismatch return false; |