Anope IRC Services  Version 2.0
Public Member Functions | Data Fields
Mode Class Reference

#include <modes.h>

Inheritance diagram for Mode:
Inheritance graph
Collaboration diagram for Mode:
Collaboration graph

Public Member Functions

 Mode (const Anope::string &mname, ModeClass mclass, char mc, ModeType type)
virtual ~Mode ()
virtual bool CanSet (User *u) const
- Public Member Functions inherited from Base
 Base ()
virtual ~Base ()
void AddReference (ReferenceBase *r)
void DelReference (ReferenceBase *r)

Data Fields

Anope::string name
ModeClass mclass
char mchar
ModeType type

Detailed Description

This class is the basis of all modes in Anope

Definition at line 39 of file modes.h.

Constructor & Destructor Documentation

Mode::Mode ( const Anope::string mname,
ModeClass  mclass,
char  mc,
ModeType  type 


mnameThe mode name
mclassThe type of mode this is
mcThe mode char
typeThe mode type

Definition at line 118 of file modes.cpp.

Mode::~Mode ( )

Definition at line 122 of file modes.cpp.

Member Function Documentation

bool Mode::CanSet ( User u) const

Can a user set this mode, used for mlock

uThe user

Reimplemented in ChannelModeUnrealSSL, ChannelModeNoone, ChannelModeOperOnly, UserModeNoone, UserModeOperOnly, ChannelMode, and ChannelModeLargeBan.

Definition at line 126 of file modes.cpp.

Referenced by NSSet::OnUserLogin().

Field Documentation

char Mode::mchar
ModeClass Mode::mclass

Definition at line 45 of file modes.h.

Anope::string Mode::name
ModeType Mode::type

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