Anope IRC Services  Version 2.0
Public Member Functions
ChannelModeList Class Reference

#include <modes.h>

Inheritance diagram for ChannelModeList:
Inheritance graph
[legend]
Collaboration diagram for ChannelModeList:
Collaboration graph
[legend]

Public Member Functions

 ChannelModeList (const Anope::string &name, char mc)
 
virtual bool IsValid (Anope::string &mask) const
 
virtual bool Matches (User *u, const Entry *e)
 
virtual void OnAdd (Channel *chan, const Anope::string &mask)
 
virtual void OnDel (Channel *chan, const Anope::string &mask)
 
- Public Member Functions inherited from ChannelMode
 ChannelMode (const Anope::string &name, char mc)
 
bool CanSet (User *u) const anope_override
 
virtual ChannelModeWrap (Anope::string &param)
 
ChannelModeUnwrap (Anope::string &param)
 
virtual ChannelModeUnwrap (ChannelMode *, Anope::string &param)
 
- Public Member Functions inherited from Mode
 Mode (const Anope::string &mname, ModeClass mclass, char mc, ModeType type)
 
virtual ~Mode ()
 
- Public Member Functions inherited from Base
 Base ()
 
virtual ~Base ()
 
void AddReference (ReferenceBase *r)
 
void DelReference (ReferenceBase *r)
 

Additional Inherited Members

- Data Fields inherited from ChannelMode
std::vector< ChannelMode * > listeners
 
- Data Fields inherited from Mode
Anope::string name
 
ModeClass mclass
 
char mchar
 
ModeType type
 

Detailed Description

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

Definition at line 125 of file modes.h.

Constructor & Destructor Documentation

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

constructor

Parameters
nameThe mode name
mcThe mode char

Definition at line 173 of file modes.cpp.

References MODE_LIST, and Mode::type.

Member Function Documentation

bool ChannelModeList::IsValid ( Anope::string mask) const
virtual

Is the mask valid

Parameters
maskThe mask
Returns
true for yes, false for no

Definition at line 178 of file modes.cpp.

References IRCD, Mode::name, and IRCDProto::NormalizeMask().

Referenced by Channel::SetMode().

virtual bool ChannelModeList::Matches ( User u,
const Entry e 
)
inlinevirtual
virtual void ChannelModeList::OnAdd ( Channel chan,
const Anope::string mask 
)
inlinevirtual

Called when a mask is added to a channel

Parameters
chanThe channel
maskThe mask

Definition at line 152 of file modes.h.

Referenced by Channel::SetModeInternal().

virtual void ChannelModeList::OnDel ( Channel chan,
const Anope::string mask 
)
inlinevirtual

Called when a mask is removed from a channel

Parameters
chanThe channel
maskThe mask

Definition at line 158 of file modes.h.

Referenced by Channel::RemoveModeInternal().


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