]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/modes/cmode_l.h
Fix various issues with the nationalchars module.
[user/henk/code/inspircd.git] / include / modes / cmode_l.h
index 886ece32406ee82bb4b1cc84a17117e14d7f8e08..3018a0d6731b60551162653163d9e0eba31354b8 100644 (file)
@@ -1,10 +1,30 @@
+/*
+ * InspIRCd -- Internet Relay Chat Daemon
+ *
+ *   Copyright (C) 2007 Dennis Friis <peavey@inspircd.org>
+ *
+ * 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 <http://www.gnu.org/licenses/>.
+ */
+
+
 #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 &parameter, bool adding);
-       std::pair<bool,std::string> ModeSet(userrec* source, userrec* dest, chanrec* channel, const std::string &parameter);
-       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);
 };