Anope IRC Services  Version 2.0
Public Types | Public Member Functions | Data Fields
BadWordsImpl Struct Reference
Inheritance diagram for BadWordsImpl:
Inheritance graph
[legend]
Collaboration diagram for BadWordsImpl:
Collaboration graph
[legend]

Public Types

typedef std::vector< BadWordImpl * > list
 

Public Member Functions

 BadWordsImpl (Extensible *obj)
 
 ~BadWordsImpl ()
 
BadWordAddBadWord (const Anope::string &word, BadWordType type) anope_override
 
BadWordGetBadWord (unsigned index) const anope_override
 
unsigned GetBadWordCount () const anope_override
 
void EraseBadWord (unsigned index) anope_override
 
void ClearBadWords () anope_override
 
void Check () anope_override
 
- Public Member Functions inherited from BadWords
virtual ~BadWords ()
 

Data Fields

Serialize::Reference< ChannelInfoci
 
Serialize::Checker< listbadwords
 

Detailed Description

Definition at line 30 of file bs_badwords.cpp.

Member Typedef Documentation

◆ list

typedef std::vector<BadWordImpl *> BadWordsImpl::list

Definition at line 33 of file bs_badwords.cpp.

Constructor & Destructor Documentation

◆ BadWordsImpl()

BadWordsImpl::BadWordsImpl ( Extensible obj)
inline

Definition at line 36 of file bs_badwords.cpp.

◆ ~BadWordsImpl()

BadWordsImpl::~BadWordsImpl ( )

Definition at line 92 of file bs_badwords.cpp.

Member Function Documentation

◆ AddBadWord()

BadWord* BadWordsImpl::AddBadWord ( const Anope::string word,
BadWordType  type 
)
inlinevirtual

Add a badword to the badword list

Parameters
wordThe badword
typeThe type (SINGLE START END)
Returns
The badword

Implements BadWords.

Definition at line 40 of file bs_badwords.cpp.

References BadWordImpl::BadWordImpl(), BadWord::chan, FOREACH_MOD, ChannelInfo::name, BadWord::type, and BadWord::word.

◆ Check()

void BadWordsImpl::Check ( )
inlinevirtual

Implements BadWords.

Definition at line 85 of file bs_badwords.cpp.

References Extensible::Shrink().

◆ ClearBadWords()

void BadWordsImpl::ClearBadWords ( )
inlinevirtual

Clear all badwords from the channel

Implements BadWords.

Definition at line 79 of file bs_badwords.cpp.

◆ EraseBadWord()

void BadWordsImpl::EraseBadWord ( unsigned  index)
inlinevirtual

Remove a badword

Parameters
indexThe index of the badword

Implements BadWords.

Definition at line 69 of file bs_badwords.cpp.

References FOREACH_MOD.

◆ GetBadWord()

BadWord* BadWordsImpl::GetBadWord ( unsigned  index) const
inlinevirtual

Get a badword structure by index

Parameters
indexThe index
Returns
The badword

Implements BadWords.

Definition at line 54 of file bs_badwords.cpp.

References Serializable::QueueUpdate().

◆ GetBadWordCount()

unsigned BadWordsImpl::GetBadWordCount ( ) const
inlinevirtual

Get how many badwords are on this channel

Returns
The number of badwords in the vector

Implements BadWords.

Definition at line 64 of file bs_badwords.cpp.

Field Documentation

◆ badwords

Serialize::Checker<list> BadWordsImpl::badwords

Definition at line 34 of file bs_badwords.cpp.

Referenced by BadWordImpl::Unserialize(), and BadWordImpl::~BadWordImpl().

◆ ci

Serialize::Reference<ChannelInfo> BadWordsImpl::ci

Definition at line 32 of file bs_badwords.cpp.


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