summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH7-25 <simos@simosnap.org>2015-02-05 19:45:27 +0100
committerH7-25 <simos@simosnap.org>2015-02-11 08:11:25 +0100
commit61a8dd57f7984194dc453ef56b5b05c957aedd8b (patch)
tree99a1baf0585dd6588b9789588a7158ba1adef061
parent845ca576b4c5a94f0a3ec12a4dd524a7d017155e (diff)
Added kickcheck override for users with protected privs
-rw-r--r--modules/commands/cs_set.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands/cs_set.cpp b/modules/commands/cs_set.cpp
index afd2c3547..3c7a0f32c 100644
--- a/modules/commands/cs_set.cpp
+++ b/modules/commands/cs_set.cpp
@@ -1252,7 +1252,7 @@ class CSSet : public Module
EventReturn OnCheckKick(User *u, Channel *c, Anope::string &mask, Anope::string &reason) anope_override
{
- if (!c->ci || !restricted.HasExt(c->ci) || c->MatchesList(u, "EXCEPT"))
+ if (!c->ci || !restricted.HasExt(c->ci) || c->MatchesList(u, "EXCEPT") || u->IsProtected())
return EVENT_CONTINUE;
if (c->ci->AccessFor(u).empty() && (!c->ci->GetFounder() || u->Account() != c->ci->GetFounder()))