From 072022961d512f1aecd51ddcc0648c08b11e7ec1 Mon Sep 17 00:00:00 2001 From: w00t Date: Thu, 16 Apr 2009 15:32:16 +0000 Subject: Fix bug #826: setting +l 0 doesn't work in some cases. Just don't check for +l to an existing limit at all, as there isn't a lot of point to it. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11302 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modes/cmode_l.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/modes') diff --git a/src/modes/cmode_l.cpp b/src/modes/cmode_l.cpp index ee3d574e0..e87a524b2 100644 --- a/src/modes/cmode_l.cpp +++ b/src/modes/cmode_l.cpp @@ -51,15 +51,6 @@ ModeAction ModeChannelLimit::OnModeChange(User*, User*, Channel* channel, std::s if (limit < 0) limit = 0x7FFF; - /* If the new limit is the same as the old limit, - * and the old limit isnt 0, disallow */ - std::string oldlimit = channel->GetModeParameter('l'); - if (limit == atoi(oldlimit.c_str()) && oldlimit != "0") - { - parameter = ""; - return MODEACTION_DENY; - } - parameter = ConvToStr(limit); /* Set new limit */ -- cgit v1.2.3