Public Member Functions | Private Member Functions

CommandNSInfo Class Reference

Inherits Command.

Collaboration diagram for CommandNSInfo:
Collaboration graph
[legend]

Public Member Functions

 CommandNSInfo (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 (NickCore *core, Anope::string &buf, const Anope::string &opt, const char *str, const Extensible *e, bool reverse_logic=false)

Detailed Description

Definition at line 16 of file ns_info.cpp.


Constructor & Destructor Documentation

CommandNSInfo::CommandNSInfo ( Module creator  )  [inline]

Definition at line 30 of file ns_info.cpp.

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


Member Function Documentation

void CommandNSInfo::CheckOptStr ( NickCore core,
Anope::string buf,
const Anope::string opt,
const char *  str,
const Extensible e,
bool  reverse_logic = false 
) [inline, private]

Definition at line 19 of file ns_info.cpp.

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

Referenced by Execute().

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

References _, and Command::SendSyntax().


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