#include <modes.h>
Inherits Mode.
Inherited by ChannelModeAdmin, ChannelModeList, ChannelModeOper, ChannelModeParam, ChannelModeRegistered, ChannelModeStatus, and ChannelModeUnrealSSL.

Public Member Functions | |
| ChannelMode (const Anope::string &name, char mc) | |
| virtual | ~ChannelMode () |
| virtual bool | CanSet (User *u) const |
This class is a channel mode, all channel modes use this/inherit from this
Definition at line 92 of file modes.h.
| ChannelMode::ChannelMode | ( | const Anope::string & | name, | |
| char | mc | |||
| ) |
| 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
| 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().
1.7.1