The InspIRCd Project
Home | Developers | Wiki | Forums | Bug Tracker | SVN | Download
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

CommandTban Class Reference

Handle /TBAN. More...

Inheritance diagram for CommandTban:

Inheritance graph
[legend]
Collaboration diagram for CommandTban:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CommandTban (InspIRCd *Instance)
CmdResult Handle (const std::vector< std::string > &parameters, User *user)
 Handle the command from a user.

Detailed Description

Handle /TBAN.

Definition at line 33 of file m_timedbans.cpp.


Constructor & Destructor Documentation

CommandTban::CommandTban InspIRCd Instance  )  [inline]
 

Definition at line 36 of file m_timedbans.cpp.

References Command::source, Command::syntax, TR_END, TR_TEXT, and TRANSLATE4.


Member Function Documentation

CmdResult CommandTban::Handle const std::vector< std::string > &  parameters,
User user
[inline, virtual]
 

Handle the command from a user.

Parameters:
parameters The parameters for the command.
user The user who issued the command.
Returns:
Return CMD_SUCCESS on success, or CMD_FAILURE on failure. If the command succeeds but should remain local to this server, return CMD_LOCALONLY.

Implements Command.

Definition at line 43 of file m_timedbans.cpp.

References ServerConfig::AllowHalfop, Channel::bans, InspIRCd::CallCommandHandler(), TimedBan::channel, CMD_FAILURE, CMD_SUCCESS, InspIRCd::Config, InspIRCd::Duration(), TimedBan::expire, InspIRCd::FindChan(), Channel::GetStatus(), InspIRCd::IsValidMask(), TimedBan::mask, Channel::name, User::nick, Command::ServerInstance, STATUS_HOP, STATUS_OP, InspIRCd::Time(), TimedBanList, Channel::WriteAllExcept(), User::WriteNumeric(), and User::WriteServ().


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