X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fmodes%2Fcmode_l.h;h=3018a0d6731b60551162653163d9e0eba31354b8;hb=8ffce4d2f3ab29677b466238ce900a85b6c9d693;hp=886ece32406ee82bb4b1cc84a17117e14d7f8e08;hpb=98a92e20f1fa4a9c7e5749e063414483d4615c2e;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/modes/cmode_l.h b/include/modes/cmode_l.h index 886ece324..3018a0d67 100644 --- a/include/modes/cmode_l.h +++ b/include/modes/cmode_l.h @@ -1,10 +1,30 @@ +/* + * InspIRCd -- Internet Relay Chat Daemon + * + * Copyright (C) 2007 Dennis Friis + * + * This file is part of InspIRCd. InspIRCd is free software: you can + * redistribute it and/or modify it under the terms of the GNU General Public + * License as published by the Free Software Foundation, version 2. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + + #include "mode.h" -class ModeChannelLimit : public ModeHandler +/** Channel mode +l + */ +class ModeChannelLimit : public ParamChannelModeHandler { public: ModeChannelLimit(); - ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); - std::pair ModeSet(userrec* source, userrec* dest, chanrec* channel, const std::string ¶meter); - bool CheckTimeStamp(time_t theirs, time_t ours, const std::string &their_param, const std::string &our_param, chanrec* channel); + bool ParamValidate(std::string& parameter); + bool ResolveModeConflict(std::string &their_param, const std::string &our_param, Channel* channel); };