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

Allow modules to add their own channel levels

This commit is contained in:
Adam
2011-08-28 15:46:15 -04:00
parent 62752db4c4
commit 700a585b1b
67 changed files with 530 additions and 520 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->AccessFor(u).HasPriv(CA_TOPIC))
else if (!c->ci->AccessFor(u).HasPriv("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->AccessFor(u).HasPriv(CA_TOPIC);
bool override = c->ci->AccessFor(u).HasPriv("TOPIC");
Log(override ? LOG_OVERRIDE : LOG_COMMAND, u, this, c->ci) << "changed topic to " << topic;
}
return;