Public Member Functions

ChannelModeList Class Reference

#include <modes.h>

Inherits ChannelMode.

Inherited by InspIRCdExtBan, InspIRCdExtBan, and UnrealExtBan.

Collaboration diagram for ChannelModeList:
Collaboration graph
[legend]

Public Member Functions

 ChannelModeList (const Anope::string &name, char mc)
virtual ~ChannelModeList ()
virtual bool IsValid (const Anope::string &mask) const
virtual bool Matches (const User *u, const Entry *e)
virtual void OnAdd (Channel *chan, const Anope::string &mask)
virtual void OnDel (Channel *chan, const Anope::string &mask)

Detailed Description

This is a mode for lists, eg b/e/I. These modes should inherit from this

Definition at line 112 of file modes.h.


Constructor & Destructor Documentation

ChannelModeList::ChannelModeList ( const Anope::string name,
char  mc 
)

constructor

Parameters:
name The mode name
mc The mode char

Definition at line 104 of file modes.cpp.

References Mode::type.

ChannelModeList::~ChannelModeList (  )  [virtual]

destructor

Definition at line 109 of file modes.cpp.


Member Function Documentation

virtual bool ChannelModeList::IsValid ( const Anope::string mask  )  const [inline, virtual]

Is the mask valid

Parameters:
mask The mask
Returns:
true for yes, false for no

Definition at line 129 of file modes.h.

Referenced by Channel::SetMode().

virtual bool ChannelModeList::Matches ( const User u,
const Entry e 
) [inline, virtual]

Checks if mask affects user Should only be used for extbans or other weird ircd-specific things.

Parameters:
u The user
e The entry to match against
Returns:
true on match

Reimplemented in InspIRCdExtBan, InspIRCdExtBan, and UnrealExtBan.

Definition at line 137 of file modes.h.

Referenced by Entry::Matches().

virtual void ChannelModeList::OnAdd ( Channel chan,
const Anope::string mask 
) [inline, virtual]

Called when a mask is added to a channel

Parameters:
chan The channel
mask The mask

Definition at line 143 of file modes.h.

Referenced by Channel::SetModeInternal().

virtual void ChannelModeList::OnDel ( Channel chan,
const Anope::string mask 
) [inline, virtual]

Called when a mask is removed from a channel

Parameters:
chan The channel
mask The mask

Definition at line 149 of file modes.h.

Referenced by Channel::RemoveModeInternal().


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