1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 20:43:13 +02:00

Fixed some permission checking fail in modules that got messed up from the big commands sed

This commit is contained in:
Adam
2011-08-18 22:04:59 -04:00
parent 0cdca534a8
commit db340f96d6
9 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -43,13 +43,13 @@ class CommandCSDrop : public Command
ci = cs_findchan(chan);
if (ci->HasFlag(CI_SUSPENDED) && !u->HasCommand("chanserv/chanserv/drop"))
if (ci->HasFlag(CI_SUSPENDED) && !u->HasCommand("chanserv/drop"))
{
source.Reply(CHAN_X_SUSPENDED, chan.c_str());
return;
}
if ((ci->HasFlag(CI_SECUREFOUNDER) ? !IsFounder(u, ci) : !ci->AccessFor(u).HasPriv(CA_FOUNDER)) && !u->HasCommand("chanserv/chanserv/drop"))
if ((ci->HasFlag(CI_SECUREFOUNDER) ? !IsFounder(u, ci) : !ci->AccessFor(u).HasPriv(CA_FOUNDER)) && !u->HasCommand("chanserv/drop"))
{
source.Reply(ACCESS_DENIED);
return;