Anope IRC Services  Version 2.0
Public Member Functions
ChannelModeOperOnly Class Reference

#include <modes.h>

Inheritance diagram for ChannelModeOperOnly:
Inheritance graph
[legend]
Collaboration diagram for ChannelModeOperOnly:
Collaboration graph
[legend]

Public Member Functions

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

Additional Inherited Members

- Data Fields inherited from ChannelMode
std::vector< ChannelMode * > listeners
 
- Data Fields inherited from Mode
Anope::string name
 
ModeClass mclass
 
char mchar
 
ModeType type
 

Detailed Description

This class is used for oper only channel modes

Definition at line 267 of file modes.h.

Constructor & Destructor Documentation

ChannelModeOperOnly::ChannelModeOperOnly ( const Anope::string mname,
char  mc 
)
inline

Definition at line 270 of file modes.h.

Member Function Documentation

bool ChannelModeOperOnly::CanSet ( User u) const
virtual

Can a user set this mode, used for mlock

Parameters
uThe user

Reimplemented from ChannelMode.

Definition at line 249 of file modes.cpp.

References User::HasMode().


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