1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * InspIRCd: (C) 2002-2010 InspIRCd Development Team
6 * See: http://wiki.inspircd.org/Credits
8 * This program is free but copyrighted software; see
9 * the file COPYING for details.
11 * ---------------------------------------------------
18 #include "modes/cmode_l.h"
20 ModeChannelLimit::ModeChannelLimit() : ParamChannelModeHandler(NULL, "limit", 'l')
24 bool ModeChannelLimit::ResolveModeConflict(std::string &their_param, const std::string &our_param, Channel*)
26 /* When TS is equal, the higher channel limit wins */
27 return (atoi(their_param.c_str()) < atoi(our_param.c_str()));
30 bool ModeChannelLimit::ParamValidate(std::string ¶meter)
32 int limit = atoi(parameter.c_str());
37 parameter = ConvToStr(limit);