summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-05-23 14:47:14 -0400
committerAdam <Adam@anope.org>2011-05-23 14:47:14 -0400
commita45d1555d3f4751f4d42576a93640bc251c1dfe1 (patch)
tree552c5da8ac6562a05409da5f0af437aaaf96f2c3 /src/users.cpp
parent121ae0b189361141a5c4ae731556357c903b2723 (diff)
Added an IsServicesOper event
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 1b06461ed..fe947d89a 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -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;