]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - include/modes/cmode_k.h
OOPS! We try again, since I'm smoking craq. LF is 0x0a NOT CR.
[user/henk/code/inspircd.git] / include / modes / cmode_k.h
1 /*       +------------------------------------+
2  *       | Inspire Internet Relay Chat Daemon |
3  *       +------------------------------------+
4  *
5  *  InspIRCd: (C) 2002-2007 InspIRCd Development Team
6  * See: http://www.inspircd.org/wiki/index.php/Credits
7  *
8  * This program is free but copyrighted software; see
9  *            the file COPYING for details.
10  *
11  * ---------------------------------------------------
12  */
13
14 #include "mode.h"
15
16 class InspIRCd;
17
18 /** Channel mode +k
19  */
20 class ModeChannelKey : public ModeHandler
21 {
22  public:
23         ModeChannelKey(InspIRCd* Instance);
24         ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string &parameter, bool adding);
25         ModePair ModeSet(userrec* source, userrec* dest, chanrec* channel, const std::string &parameter);
26         bool CheckTimeStamp(time_t theirs, time_t ours, const std::string &their_param, const std::string &our_param, chanrec* channel);
27         void RemoveMode(chanrec* channel);
28         void RemoveMode(userrec* user);
29 };