1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 08:26:38 +02:00

Merge pull request #99 from H7-25/extemp_protected

Added kickcheck override for users with protected privs
This commit is contained in:
Adam
2015-03-12 08:15:59 -04:00
+1 -1
View File
@@ -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()))