Anope IRC Services  Version 2.0
Public Member Functions | Private Attributes
ChannelStatus Class Reference

#include <modes.h>

Collaboration diagram for ChannelStatus:
Collaboration graph

Public Member Functions

 ChannelStatus ()
 ChannelStatus (const Anope::string &modes)
void AddMode (char c)
void DelMode (char c)
bool HasMode (char c) const
bool Empty () const
void Clear ()
const Anope::stringModes () const
Anope::string BuildModePrefixList () const

Private Attributes

Anope::string modes

Detailed Description

Definition at line 224 of file modes.h.

Constructor & Destructor Documentation

◆ ChannelStatus() [1/2]

ChannelStatus::ChannelStatus ( )

Definition at line 62 of file modes.cpp.

◆ ChannelStatus() [2/2]

ChannelStatus::ChannelStatus ( const Anope::string modes)

Definition at line 66 of file modes.cpp.

Member Function Documentation

◆ AddMode()

void ChannelStatus::AddMode ( char  c)

◆ BuildModePrefixList()

Anope::string ChannelStatus::BuildModePrefixList ( ) const

◆ Clear()

void ChannelStatus::Clear ( )

◆ DelMode()

void ChannelStatus::DelMode ( char  c)

Definition at line 76 of file modes.cpp.

References modes, and Anope::string::replace_all_cs().

Referenced by Channel::RemoveModeInternal().

◆ Empty()

bool ChannelStatus::Empty ( ) const

Definition at line 86 of file modes.cpp.

References Anope::string::empty(), and modes.

Referenced by Channel::HasUserStatus().

◆ HasMode()

bool ChannelStatus::HasMode ( char  c) const

◆ Modes()

const Anope::string & ChannelStatus::Modes ( ) const

Field Documentation

◆ modes

Anope::string ChannelStatus::modes

Definition at line 226 of file modes.h.

Referenced by AddMode(), BuildModePrefixList(), Clear(), DelMode(), Empty(), HasMode(), and Modes().

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