Public Member Functions | Private Member Functions

CommandOSException Class Reference

Inherits Command.

Collaboration diagram for CommandOSException:
Collaboration graph
[legend]

Public Member Functions

 CommandOSException (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 DoAdd (CommandSource &source, const std::vector< Anope::string > &params)
void DoDel (CommandSource &source, const std::vector< Anope::string > &params)
void DoMove (CommandSource &source, const std::vector< Anope::string > &params)
void ProcessList (CommandSource &source, const std::vector< Anope::string > &params, ListFormatter &list)
void DoList (CommandSource &source, const std::vector< Anope::string > &params)
void DoView (CommandSource &source, const std::vector< Anope::string > &params)

Detailed Description

Definition at line 266 of file os_session.cpp.


Constructor & Destructor Documentation

CommandOSException::CommandOSException ( Module creator  )  [inline]

Definition at line 530 of file os_session.cpp.

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


Member Function Documentation

void CommandOSException::DoAdd ( CommandSource source,
const std::vector< Anope::string > &  params 
) [inline, private]
void CommandOSException::DoDel ( CommandSource source,
const std::vector< Anope::string > &  params 
) [inline, private]
void CommandOSException::DoList ( CommandSource source,
const std::vector< Anope::string > &  params 
) [inline, private]

Definition at line 513 of file os_session.cpp.

References ListFormatter::AddColumn(), and ProcessList().

Referenced by Execute().

void CommandOSException::DoMove ( CommandSource source,
const std::vector< Anope::string > &  params 
) [inline, private]
void CommandOSException::DoView ( CommandSource source,
const std::vector< Anope::string > &  params 
) [inline, private]

Definition at line 521 of file os_session.cpp.

References ListFormatter::AddColumn(), and ProcessList().

Referenced by Execute().

void CommandOSException::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 540 of file os_session.cpp.

References _, Config, DoAdd(), DoDel(), DoList(), DoMove(), DoView(), Anope::string::equals_ci(), ServerConfig::LimitSessions, and Command::OnSyntaxError().

bool CommandOSException::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 566 of file os_session.cpp.

References _, Anope::string::c_str(), Config, ServerConfig::OperServ, and Command::SendSyntax().

void CommandOSException::ProcessList ( CommandSource source,
const std::vector< Anope::string > &  params,
ListFormatter list 
) [inline, private]

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