mirror of
https://github.com/anope/anope.git
synced 2026-06-30 13:06:38 +02:00
Added oper:require_oper configuration option
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user