From 8ab1381e8d277152d99a72f33f3d1c0564060fee Mon Sep 17 00:00:00 2001 From: danieldg Date: Sun, 15 Nov 2009 18:26:44 +0000 Subject: Add ParamChannelModeHandler git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12134 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/modes/cmode_l.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'include/modes/cmode_l.h') diff --git a/include/modes/cmode_l.h b/include/modes/cmode_l.h index dc93396d7..80e863057 100644 --- a/include/modes/cmode_l.h +++ b/include/modes/cmode_l.h @@ -13,14 +13,12 @@ #include "mode.h" -class InspIRCd; - /** Channel mode +l */ -class ModeChannelLimit : public ModeHandler +class ModeChannelLimit : public ParamChannelModeHandler { public: ModeChannelLimit(); - ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding); + bool ParamValidate(std::string& parameter); bool ResolveModeConflict(std::string &their_param, const std::string &our_param, Channel* channel); }; -- cgit v1.2.3