Public Member Functions | Private Member Functions

CommandCSInfo Class Reference

Inherits Command.

Collaboration diagram for CommandCSInfo:
Collaboration graph
[legend]

Public Member Functions

 CommandCSInfo (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

void CheckOptStr (Anope::string &buf, const Anope::string &opt, const char *str, const ChannelInfo *ci, const NickCore *nc)

Detailed Description

Definition at line 16 of file cs_info.cpp.


Constructor & Destructor Documentation

CommandCSInfo::CommandCSInfo ( Module creator  )  [inline]

Definition at line 30 of file cs_info.cpp.

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


Member Function Documentation

void CommandCSInfo::CheckOptStr ( Anope::string buf,
const Anope::string opt,
const char *  str,
const ChannelInfo ci,
const NickCore nc 
) [inline, private]

Definition at line 18 of file cs_info.cpp.

References Anope::string::empty(), Extensible::HasExt(), and Language::Translate().

Referenced by Execute().

void CommandCSInfo::Execute ( CommandSource source,
const std::vector< Anope::string > &  params 
) [inline, virtual]
bool CommandCSInfo::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 126 of file cs_info.cpp.

References _, and Command::SendSyntax().


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