summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-28 17:31:16 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-28 17:31:16 +0000
commite8ce6e0b103b4c9b6b5eccbf4e35cce044674fa7 (patch)
treeddfaee5714343502fb423d905af3f9f287c30b6d /src
parenta07fd592cba683025a07187e07e31e1d55fcd199 (diff)
Missed converting this to opertypes.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2137 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/core/cs_topic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/cs_topic.c b/src/core/cs_topic.c
index cbfdc9828..578e8e9c3 100644
--- a/src/core/cs_topic.c
+++ b/src/core/cs_topic.c
@@ -38,7 +38,7 @@ class CommandCSTopic : 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) && !u->nc->HasCommand("chanserv/topic"))
notice_lang(s_ChanServ, u, PERMISSION_DENIED);
else
{
@@ -57,7 +57,7 @@ class CommandCSTopic : 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 && whosends(ci) == findbot(s_ChanServ))
{