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

CommandCAP Class Reference

Handle /CAP. More...

Inheritance diagram for CommandCAP:

Inheritance graph
[legend]
Collaboration diagram for CommandCAP:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Private Attributes

ModuleCreator

Detailed Description

Handle /CAP.

Definition at line 35 of file m_cap.cpp.


Constructor & Destructor Documentation

CommandCAP::CommandCAP InspIRCd Instance,
Module mod
[inline]
 

Definition at line 39 of file m_cap.cpp.

References Command::source.


Member Function Documentation

CmdResult CommandCAP::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 44 of file m_cap.cpp.

References CMD_FAILURE, Creator, CapData::creator, ERR_INVALIDCAPSUBCOMMAND, Extensible::Extend(), irc::sepstream::GetToken(), Event::Send(), Extensible::Shrink(), CapData::type, CapData::user, CapData::wanted, User::WriteNumeric(), and User::WriteServ().


Member Data Documentation

Module* CommandCAP::Creator [private]
 

Definition at line 37 of file m_cap.cpp.

Referenced by Handle().


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