Public Member Functions

CommandCSUnban Class Reference

Inherits Command.

Collaboration diagram for CommandCSUnban:
Collaboration graph
[legend]

Public Member Functions

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

Detailed Description

Definition at line 16 of file cs_unban.cpp.


Constructor & Destructor Documentation

CommandCSUnban::CommandCSUnban ( Module creator  )  [inline]

Definition at line 19 of file cs_unban.cpp.

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


Member Function Documentation

void CommandCSUnban::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 25 of file cs_unban.cpp.

References _, ACCESS_DENIED, ChannelInfo::c, Anope::string::c_str(), CHAN_X_NOT_IN_USE, CHAN_X_NOT_REGISTERED, User::Find(), ChannelInfo::Find(), LOG_COMMAND, Channel::name, ChannelInfo::name, User::nick, NICK_X_NOT_IN_USE, and Channel::Unban().

bool CommandCSUnban::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 90 of file cs_unban.cpp.

References _, and Command::SendSyntax().


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