1
0
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:
Adam
2011-12-12 15:26:59 -05:00
parent 4211dcf6f9
commit 255a8da347
5 changed files with 18 additions and 7 deletions
+2
View File
@@ -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;