diff options
| author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-04-04 01:09:07 +0000 |
|---|---|---|
| committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-04-04 01:09:07 +0000 |
| commit | ad77b5ee2d83503631b16e088b3739be6177dba3 (patch) | |
| tree | 945b70f4899eb2476fef1691552680091e9b6e9b /src/modules | |
| parent | 146ecc2fbba8c2a72af78d336ad58aebda656773 (diff) | |
Remove various uneeded priv checks.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2258 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/cs_appendtopic.c | 4 | ||||
| -rw-r--r-- | src/modules/ns_maxemail.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/cs_appendtopic.c b/src/modules/cs_appendtopic.c index 5e28f09a5..5475cb17e 100644 --- a/src/modules/cs_appendtopic.c +++ b/src/modules/cs_appendtopic.c @@ -73,7 +73,7 @@ class CommandCSAppendTopic : public Command notice_lang(s_ChanServ, u, CHAN_X_NOT_REGISTERED, c->name); else if (ci->flags & CI_FORBIDDEN) notice_lang(s_ChanServ, u, CHAN_X_FORBIDDEN, ci->name); - else if (!is_services_admin(u) && !check_access(u, ci, CA_TOPIC)) + else if (!check_access(u, ci, CA_TOPIC)) notice_lang(s_ChanServ, u, PERMISSION_DENIED); else { @@ -98,7 +98,7 @@ class CommandCSAppendTopic : public Command else c->topic_time = ci->last_topic_time; - if (is_services_admin(u) && !check_access(u, ci, CA_TOPIC)) + if (!check_access(u, ci, CA_TOPIC)) alog("%s: %s!%s@%s changed topic of %s as services admin.", s_ChanServ, u->nick, u->GetIdent().c_str(), u->host, c->name); if (ircd->join2set) { diff --git a/src/modules/ns_maxemail.c b/src/modules/ns_maxemail.c index ccb624947..cb4684998 100644 --- a/src/modules/ns_maxemail.c +++ b/src/modules/ns_maxemail.c @@ -148,7 +148,7 @@ int count_email_in_use(const char *email, User * u) bool check_email_limit_reached(const char *email, User * u) { - if (NSEmailMax < 1 || !email || is_services_admin(u)) + if (NSEmailMax < 1 || !email) return false; if (count_email_in_use(email, u) < NSEmailMax) |
