]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - include/modes/cmode_b.h
3e4683840771950f397d5b2aa0c8cae24cc8da14
[user/henk/code/inspircd.git] / include / modes / cmode_b.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 #include "channels.h"
16
17 class InspIRCd;
18
19 /** Channel mode +b
20  */
21 class ModeChannelBan : public ModeHandler
22 {
23  private:
24         BanItem b;
25  public:
26         ModeChannelBan(InspIRCd* Instance);
27         ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string &parameter, bool adding);
28         std::string& AddBan(User *user,std::string& dest,Channel *chan,int status);
29         std::string& DelBan(User *user,std::string& dest,Channel *chan,int status);
30         void DisplayList(User* user, Channel* channel);
31         void DisplayEmptyList(User* user, Channel* channel);
32         ModePair ModeSet(User* source, User* dest, Channel* channel, const std::string &parameter);
33         void RemoveMode(User* user, irc::modestacker* stack = NULL);
34         void RemoveMode(Channel* channel, irc::modestacker* stack = NULL);
35 };
36