summaryrefslogtreecommitdiff
path: root/src/modes/cmode_l.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-04-16 15:32:16 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-04-16 15:32:16 +0000
commit072022961d512f1aecd51ddcc0648c08b11e7ec1 (patch)
treee9a55f9efb404237e00477bdc2e4c6beb85f0514 /src/modes/cmode_l.cpp
parent03e74cdee93dc0256b4802c76534f97d74022ae9 (diff)
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
Diffstat (limited to 'src/modes/cmode_l.cpp')
-rw-r--r--src/modes/cmode_l.cpp9
1 files changed, 0 insertions, 9 deletions
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 */