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

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

Definition at line 33 of file bs_badwords.cpp.

Constructor & Destructor Documentation

BadWordsImpl::BadWordsImpl ( Extensible obj)
inline

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

void BadWordsImpl::Check ( )
inlinevirtual

Implements BadWords.

Definition at line 85 of file bs_badwords.cpp.

References Extensible::Shrink().

void BadWordsImpl::ClearBadWords ( )
inlinevirtual

Clear all badwords from the channel

Implements BadWords.

Definition at line 79 of file bs_badwords.cpp.

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.

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

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

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: