1
0
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:
Adam
2011-05-23 14:47:14 -04:00
parent 121ae0b189
commit a45d1555d3
3 changed files with 31 additions and 3 deletions
+4 -2
View File
@@ -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;