mirror of
https://github.com/anope/anope.git
synced 2026-06-27 09:06:38 +02:00
Added an IsServicesOper event
This commit is contained in:
+4
-2
@@ -443,8 +443,10 @@ bool User::IsServicesOper()
|
||||
else if (!this->nc->o->certfp.empty() && this->fingerprint != this->nc->o->certfp)
|
||||
// Certfp mismatch
|
||||
return false;
|
||||
else if (!this->nc->o->password.empty() && !this->GetExt("os_login_password_correct"))
|
||||
// Not identified
|
||||
|
||||
EventReturn MOD_RESULT;
|
||||
FOREACH_RESULT(I_IsServicesOper, IsServicesOper(this));
|
||||
if (MOD_RESULT == EVENT_STOP)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user