]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modes/cmode_l.cpp
Fix for bug #695. For now, we cant be sure what parts of the code might still use...
[user/henk/code/inspircd.git] / src / modes / cmode_l.cpp
index 8d6a962fb1788160ce42093f8de98efb75b1ab87..1e0caa39d86b6b6ed0ea45d23ea37240341f1215 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
  * See: http://www.inspircd.org/wiki/index.php/Credits
  *
  * This program is free but copyrighted software; see
@@ -60,15 +60,6 @@ ModeAction ModeChannelLimit::OnModeChange(User*, User*, Channel* channel, std::s
                        return MODEACTION_DENY;
                }
 
-               /* They must have specified an invalid number.
-                * Dont allow +l 0.
-                */
-               if (!limit)
-               {
-                       parameter = "";
-                       return MODEACTION_DENY;
-               }
-
                parameter = ConvToStr(limit);
 
                /* Set new limit */