Public Member Functions

ChannelMode Class Reference

#include <modes.h>

Inherits Mode.

Inherited by ChannelModeAdmin, ChannelModeList, ChannelModeOper, ChannelModeParam, ChannelModeRegistered, ChannelModeStatus, and ChannelModeUnrealSSL.

Collaboration diagram for ChannelMode:
Collaboration graph
[legend]

Public Member Functions

 ChannelMode (const Anope::string &name, char mc)
virtual ~ChannelMode ()
virtual bool CanSet (User *u) const

Detailed Description

This class is a channel mode, all channel modes use this/inherit from this

Definition at line 92 of file modes.h.


Constructor & Destructor Documentation

ChannelMode::ChannelMode ( const Anope::string name,
char  mc 
)

constructor

Parameters:
name The mode name
mc The mode char

Definition at line 89 of file modes.cpp.

ChannelMode::~ChannelMode (  )  [virtual]

Definition at line 93 of file modes.cpp.


Member Function Documentation

bool ChannelMode::CanSet ( User u  )  const [virtual]

Can a user set this mode, used for mlock NOTE: User CAN be NULL, this is for checking if it can be locked with defcon

Parameters:
u The user, or NULL

Reimplemented in ChannelModeAdmin, ChannelModeOper, ChannelModeRegistered, and ChannelModeUnrealSSL.

Definition at line 97 of file modes.cpp.

References Config, ServerConfig::CSRequire, Anope::string::find(), Mode::mchar, ServerConfig::NoMLock, and Anope::string::npos.

Referenced by CommandCSMode::DoLock(), CommandCSMode::DoSet(), and OSDefcon::ParseModeString().


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