From 503958aa77382a85a041e195d04b7a2ec51589e3 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 29 Apr 2010 18:56:31 -0400 Subject: Prevent negaitve mode changes, kicks, bans, and autokicks from affecting users with unreal usermode +q or similar --- src/channels.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/channels.c') diff --git a/src/channels.c b/src/channels.c index 557894eff..a4cf3b167 100644 --- a/src/channels.c +++ b/src/channels.c @@ -977,6 +977,10 @@ bool Channel::Kick(BotInfo *bi, User *u, const char *reason, ...) /* May not kick ulines */ if (u->server->IsULined()) return false; + + /* Do not kick protected clients */ + if (u->IsProtected()) + return false; EventReturn MOD_RESULT; FOREACH_RESULT(I_OnBotKick, OnBotKick(bi, this, u, buf)); -- cgit