summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2017-04-06 13:41:10 -0400
committerAdam <Adam@anope.org>2017-04-06 13:41:10 -0400
commit49bbc2fa1747b6a94742417a47afc311faba760f (patch)
tree40113fa5d04b15f47e0d0aa89ebf4b9b8a990f0b
parentf02fd26e2685127257a03cdd39b2d27d029f283f (diff)
parent99acdcf168f16764012869e7c9f85e6bfae6f23b (diff)
Merge commit '99acdcf168f16764012869e7c9f85e6bfae6f23b'
-rw-r--r--modules/chanserv/mode.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/chanserv/mode.cpp b/modules/chanserv/mode.cpp
index e7e0b0d75..7687c3576 100644
--- a/modules/chanserv/mode.cpp
+++ b/modules/chanserv/mode.cpp
@@ -334,6 +334,12 @@ class CommandCSMode : public Command
break;
}
+ if (cm->type == MODE_STATUS && !CanSet(source, ci, cm, false))
+ {
+ source.Reply(_("Access denied. You do not have privilege \002{0}\002 on \002{1}\002."), cm->name, ci->GetName());
+ break;
+ }
+
if (cm->type == MODE_LIST && ci->c && IRCD->GetMaxListFor(ci->c) && ci->c->HasMode(cm->name) >= IRCD->GetMaxListFor(ci->c))
{
source.Reply(_("List for mode \002{0}\002 is full."), cm->mchar);