aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_remove.cpp
diff options
context:
space:
mode:
authorGravatar w00t2006-03-27 18:15:35 +0000
committerGravatar w00t2006-03-27 18:15:35 +0000
commit2d4ceb2fc541152361cd2719c91cd914bf2d4211 (patch)
treeb05148da2f78522a7f7fd7987ba524cfbfe015b1 /src/modules/m_remove.cpp
parent"wahhh im a tester too" (diff)
Backport founder remove fix, ignore invalid channel name check as it isn't security related
git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@3778 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_remove.cpp')
-rw-r--r--src/modules/m_remove.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_remove.cpp b/src/modules/m_remove.cpp
index 89b3234ec..dedbe0ac3 100644
--- a/src/modules/m_remove.cpp
+++ b/src/modules/m_remove.cpp
@@ -118,7 +118,7 @@ class cmd_remove : public command_t
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");