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 * > 

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

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

Definition at line 33 of file bs_badwords.cpp.

Constructor & Destructor Documentation

BadWordsImpl::BadWordsImpl ( Extensible obj)

Definition at line 36 of file bs_badwords.cpp.

BadWordsImpl::~BadWordsImpl ( )

Definition at line 92 of file bs_badwords.cpp.

References badwords.

Member Function Documentation

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 BadWord::chan, FOREACH_MOD, ChannelInfo::name, BadWord::type, and BadWord::word.

void BadWordsImpl::Check ( )

Implements BadWords.

Definition at line 85 of file bs_badwords.cpp.

References Extensible::Shrink().

void BadWordsImpl::ClearBadWords ( )

Clear all badwords from the channel

Implements BadWords.

Definition at line 79 of file bs_badwords.cpp.

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.

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 badwords, and Serializable::QueueUpdate().

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

Serialize::Checker<list> BadWordsImpl::badwords
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: