1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 10:23:14 +02:00

Simiplied a bit of the access system

This commit is contained in:
Adam
2011-08-09 01:55:34 -04:00
parent 91c3363c15
commit 776583a665
55 changed files with 116 additions and 153 deletions
+2 -2
View File
@@ -58,7 +58,7 @@ class CommandCSAppendTopic : public Command
source.Reply(CHAN_X_NOT_IN_USE, params[0].c_str());
else if (!c->ci)
source.Reply(CHAN_X_NOT_REGISTERED, c->name.c_str());
else if (!c->ci->HasPriv(u, CA_TOPIC))
else if (!c->ci->AccessFor(u).HasPriv(CA_TOPIC))
source.Reply(ACCESS_DENIED);
else
{
@@ -77,7 +77,7 @@ class CommandCSAppendTopic : public Command
if (has_topiclock)
c->ci->SetFlag(CI_TOPICLOCK);
bool override = c->ci->HasPriv(u, CA_TOPIC);
bool override = c->ci->AccessFor(u).HasPriv(CA_TOPIC);
Log(override ? LOG_OVERRIDE : LOG_COMMAND, u, this, c->ci) << "changed topic to " << topic;
}
return;