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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user