From a0398823f9384bcd4041c9a75c5ea04b29865651 Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 27 Mar 2006 02:59:02 +0000 Subject: [PATCH] Founders CANNOT be kicked, so don't let them be removed either. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3768 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_remove.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/m_remove.cpp b/src/modules/m_remove.cpp index cb6c3da73..7b6b89af3 100644 --- a/src/modules/m_remove.cpp +++ b/src/modules/m_remove.cpp @@ -106,10 +106,10 @@ class cmd_remove : public command_t ulevel = chartolevel(privs); /* If the user calling the command is either an admin, owner, operator or a half-operator on the channel */ - if(ulevel > 1) + if (ulevel > 1) { /* For now, we'll let everyone remove their level and below, eg ops can remove ops, halfops, voices, and those with no mode (no moders actually are set to 1) */ - if(ulevel >= tlevel) + if(ulevel >= tlevel && tlevel != 5) { Srv->PartUserFromChannel(target,std::string(parameters[1]), "Removed by "+std::string(user->nick)+":"+result); Srv->SendTo(NULL,user,"NOTICE "+std::string(channel->name)+" : "+std::string(user->nick)+" removed "+std::string(target->nick)+ " from the channel"); -- 2.39.5