Public Member Functions | Private Member Functions

CommandCSMode Class Reference

Inherits Command.

Collaboration diagram for CommandCSMode:
Collaboration graph
[legend]

Public Member Functions

 CommandCSMode (Module *creator)
void Execute (CommandSource &source, const std::vector< Anope::string > &params) anope_override
bool OnHelp (CommandSource &source, const Anope::string &subcommand) anope_override

Private Member Functions

bool CanSet (CommandSource &source, ChannelInfo *ci, ChannelMode *cm, bool self)
void DoLock (CommandSource &source, ChannelInfo *ci, const std::vector< Anope::string > &params)
void DoSet (CommandSource &source, ChannelInfo *ci, const std::vector< Anope::string > &params)
void DoClear (CommandSource &source, ChannelInfo *ci, const std::vector< Anope::string > &params)

Detailed Description

Definition at line 16 of file cs_mode.cpp.


Constructor & Destructor Documentation

CommandCSMode::CommandCSMode ( Module creator  )  [inline]

Definition at line 426 of file cs_mode.cpp.

References _, Command::SetDesc(), and Command::SetSyntax().


Member Function Documentation

bool CommandCSMode::CanSet ( CommandSource source,
ChannelInfo ci,
ChannelMode cm,
bool  self 
) [inline, private]
void CommandCSMode::DoClear ( CommandSource source,
ChannelInfo ci,
const std::vector< Anope::string > &  params 
) [inline, private]
void CommandCSMode::DoLock ( CommandSource source,
ChannelInfo ci,
const std::vector< Anope::string > &  params 
) [inline, private]
void CommandCSMode::DoSet ( CommandSource source,
ChannelInfo ci,
const std::vector< Anope::string > &  params 
) [inline, private]
void CommandCSMode::Execute ( CommandSource source,
const std::vector< Anope::string > &  params 
) [inline, virtual]

Execute this command.

Parameters:
source The source
params Command parameters

Implements Command.

Definition at line 434 of file cs_mode.cpp.

References ACCESS_DENIED, ChannelInfo::c, CHAN_X_NOT_IN_USE, DoClear(), DoLock(), DoSet(), Anope::string::equals_ci(), ChannelInfo::Find(), and Command::OnSyntaxError().

bool CommandCSMode::OnHelp ( CommandSource source,
const Anope::string subcommand 
) [inline, virtual]

Requested when the user is requesting help on this command. Help on this command should be sent to the user.

Parameters:
source The source
subcommand The subcommand the user is requesting help on, or an empty string. (e.g. /ns help set foo bar lol gives a subcommand of "FOO BAR LOL")
Returns:
true if help was provided to the user, false otherwise.

Reimplemented from Command.

Definition at line 462 of file cs_mode.cpp.

References _, and Command::SendSyntax().


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