]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - include/modes/cmode_k.h
Update all wiki links to point to the new wiki. This was done automatically with...
[user/henk/code/inspircd.git] / include / modes / cmode_k.h
1 /*       +------------------------------------+
2  *       | Inspire Internet Relay Chat Daemon |
3  *       +------------------------------------+
4  *
5  *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
6  * See: http://wiki.inspircd.org/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(User* source, User* dest, Channel* channel, std::string &parameter, bool adding, bool servermode);
25         ModePair ModeSet(User* source, User* dest, Channel* channel, const std::string &parameter);
26         bool CheckTimeStamp(time_t theirs, time_t ours, const std::string &their_param, const std::string &our_param, Channel* channel);
27         void RemoveMode(Channel* channel, irc::modestacker* stack = NULL);
28         void RemoveMode(User* user, irc::modestacker* stack = NULL);
29 };