- /* 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;
- }
-
- /* They must have specified an invalid number.
- * Dont allow +l 0.
- */
- if (!limit)
- {
- parameter = "";
- return MODEACTION_DENY;
- }
-