2007-07-16 17:30:04 +00:00
|
|
|
/* +------------------------------------+
|
|
|
|
* | Inspire Internet Relay Chat Daemon |
|
|
|
|
* +------------------------------------+
|
|
|
|
*
|
2009-01-02 18:16:05 +00:00
|
|
|
* InspIRCd: (C) 2002-2009 InspIRCd Development Team
|
2009-03-15 12:42:35 +00:00
|
|
|
* See: http://wiki.inspircd.org/Credits
|
2007-07-16 17:30:04 +00:00
|
|
|
*
|
|
|
|
* This program is free but copyrighted software; see
|
|
|
|
* the file COPYING for details.
|
|
|
|
*
|
|
|
|
* ---------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "mode.h"
|
|
|
|
#include "channels.h"
|
|
|
|
|
|
|
|
class InspIRCd;
|
|
|
|
|
|
|
|
/** Channel mode +b
|
|
|
|
*/
|
|
|
|
class ModeChannelBan : public ModeHandler
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
BanItem b;
|
|
|
|
public:
|
2009-09-26 14:13:13 +00:00
|
|
|
ModeChannelBan();
|
2009-09-02 00:49:24 +00:00
|
|
|
ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding);
|
|
|
|
std::string& AddBan(User *user,std::string& dest,Channel *chan,int status);
|
2007-10-15 20:59:05 +00:00
|
|
|
std::string& DelBan(User *user,std::string& dest,Channel *chan,int status);
|
|
|
|
void DisplayList(User* user, Channel* channel);
|
|
|
|
void DisplayEmptyList(User* user, Channel* channel);
|
2008-04-02 23:53:29 +00:00
|
|
|
void RemoveMode(User* user, irc::modestacker* stack = NULL);
|
|
|
|
void RemoveMode(Channel* channel, irc::modestacker* stack = NULL);
|
2007-07-16 17:30:04 +00:00
|
|
|
};
|
|
|
|
|