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

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)

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 

Add a badword to the badword list

wordThe badword
typeThe type (SINGLE START END)
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 ( )

Implements BadWords.

Definition at line 85 of file bs_badwords.cpp.

References Extensible::Shrink().

◆ ClearBadWords()

void BadWordsImpl::ClearBadWords ( )

Clear all badwords from the channel

Implements BadWords.

Definition at line 79 of file bs_badwords.cpp.

◆ EraseBadWord()

void BadWordsImpl::EraseBadWord ( unsigned  index)

Remove a badword

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

Get a badword structure by index

indexThe index
The badword

Implements BadWords.

Definition at line 54 of file bs_badwords.cpp.

References Serializable::QueueUpdate().

◆ GetBadWordCount()

unsigned BadWordsImpl::GetBadWordCount ( ) const

Get how many badwords are on this channel

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: