The InspIRCd Project
Home | Developers | Wiki | Forums | Bug Tracker | SVN | Download
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

BanRedirect Class Reference

Inheritance diagram for BanRedirect:

Inheritance graph
[legend]
Collaboration diagram for BanRedirect:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BanRedirect (InspIRCd *Instance)
bool BeforeMode (User *source, User *dest, Channel *channel, std::string &param, bool adding, ModeType type, bool)
 Before the mode character is processed by its handler, this method will be called.

Private Attributes

InspIRCdSrv

Detailed Description

Definition at line 37 of file m_banredirect.cpp.


Constructor & Destructor Documentation

BanRedirect::BanRedirect InspIRCd Instance  )  [inline]
 

Definition at line 42 of file m_banredirect.cpp.


Member Function Documentation

bool BanRedirect::BeforeMode User source,
User dest,
Channel channel,
std::string param,
bool  adding,
ModeType  type,
bool 
[inline, virtual]
 

Before the mode character is processed by its handler, this method will be called.

Parameters:
source The sender of the mode
dest The target user for the mode, if you are watching a user mode
channel The target channel for the mode, if you are watching a channel mode
parameter The parameter of the mode, if the mode is supposed to have a parameter. If you alter the parameter you are given, the mode handler will see your atered version when it handles the mode.
adding True if the mode is being added and false if it is being removed The mode type, either MODETYPE_USER or MODETYPE_CHANNEL
Returns:
True to allow the mode change to go ahead, false to abort it. If you abort the change, the mode handler (and ModeWatcher::AfterMode()) will never see the mode change.

Reimplemented from ModeWatcher.

Definition at line 47 of file m_banredirect.cpp.

References assign(), Channel::bans, ServerLimits::ChanMax, InspIRCd::Config, Extensible::Extend(), Extensible::GetExt(), Channel::GetMaxBans(), IDENT, IS_LOCAL, InspIRCd::IsChannel, ServerConfig::Limits, MODETYPE_CHANNEL, Channel::name, User::nick, ModeWatcher::ServerInstance, Extensible::Shrink(), Srv, and User::WriteNumeric().


Member Data Documentation

InspIRCd* BanRedirect::Srv [private]
 

Definition at line 40 of file m_banredirect.cpp.

Referenced by BeforeMode().


The documentation for this class was generated from the following file: