Anope IRC Services  Version 2.0
Public Member Functions | Private Attributes
InspIRCdExtBan Class Reference
Inheritance diagram for InspIRCdExtBan:
Inheritance graph
Collaboration diagram for InspIRCdExtBan:
Collaboration graph

Public Member Functions

 InspIRCdExtBan (const Anope::string &mname, char modeChar)
bool Matches (User *u, const Entry *e) anope_override
 InspIRCdExtBan (const Anope::string &mname, const Anope::string &basename, char extban)
ChannelModeWrap (Anope::string &param) anope_override
ChannelModeUnwrap (ChannelMode *cm, Anope::string &param) anope_override
- Public Member Functions inherited from ChannelModeVirtual< ChannelModeList >
 ChannelModeVirtual (const Anope::string &mname, const Anope::string &basename)
 ~ChannelModeVirtual ()
ChannelModeWrap (Anope::string &param) anope_override
- Public Member Functions inherited from ChannelModeList
 ChannelModeList (const Anope::string &name, char mc)
virtual bool IsValid (Anope::string &mask) const
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
ChannelModeUnwrap (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)

Private Attributes

char ext

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

Definition at line 455 of file inspircd12.cpp.

Constructor & Destructor Documentation

◆ InspIRCdExtBan() [1/2]

InspIRCdExtBan::InspIRCdExtBan ( const Anope::string mname,
char  modeChar 

Definition at line 458 of file inspircd12.cpp.

◆ InspIRCdExtBan() [2/2]

InspIRCdExtBan::InspIRCdExtBan ( const Anope::string mname,
const Anope::string basename,
char  extban 

Definition at line 85 of file inspircd20.cpp.

Member Function Documentation

◆ Matches()

bool InspIRCdExtBan::Matches ( User u,
const Entry e 

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

uThe user
eThe entry to match against
true on match

Reimplemented from ChannelModeList.

Reimplemented in InspIRCdExtban::UnidentifiedMatcher, InspIRCdExtban::FinerprintMatcher, InspIRCdExtban::ServerMatcher, InspIRCdExtban::RealnameMatcher, InspIRCdExtban::AccountMatcher, InspIRCdExtban::ChannelMatcher, and InspIRCdExtban::EntryMatcher.

Definition at line 460 of file inspircd12.cpp.

References Anope::string::equals_ci(), Anope::string::find(), Channel::Find(), Channel::FindUser(), Anope::Match(), Entry::Matches(), name, and Anope::string::substr().

◆ Unwrap()

ChannelMode* InspIRCdExtBan::Unwrap ( ChannelMode ,
Anope::string param 

called when a mode is being unwrapped, and is asking us if we can unwrap it

Implements ChannelModeVirtual< ChannelModeList >.

Definition at line 96 of file inspircd20.cpp.

References MODE_LIST.

◆ Wrap()

ChannelMode* InspIRCdExtBan::Wrap ( Anope::string param)

'wrap' this channel mode and param to the underlying mode and param

Reimplemented from ChannelMode.

Definition at line 90 of file inspircd20.cpp.

References ChannelModeVirtual< T >::Wrap().

Field Documentation

◆ ext

char InspIRCdExtBan::ext

Definition at line 82 of file inspircd20.cpp.

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