diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-27 02:59:02 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-27 02:59:02 +0000 |
commit | a0398823f9384bcd4041c9a75c5ea04b29865651 (patch) | |
tree | e464b67a425dd6693f606992e8c0e6991f34c26c /src | |
parent | fb231918f04dddaba7b8300ea4c518144e80f283 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_remove.cpp | 4 |
1 files 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"); |