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

CommandNick Class Reference

Handle /NICK. More...

#include <cmd_nick.h>

Inheritance diagram for CommandNick:

Inheritance graph
[legend]
Collaboration diagram for CommandNick:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CommandNick (InspIRCd *Instance)
 Constructor for nick.
CmdResult Handle (const std::vector< std::string > &parameters, User *user)
 Handle command.
CmdResult HandleInternal (const unsigned int id, const std::deque< classbase * > &parameters)
 Handle internal command.

Private Attributes

bool allowinvalid

Detailed Description

Handle /NICK.

These command handlers can be reloaded by the core, and handle basic RFC1459 commands. Commands within modules work the same way, however, they can be fully unloaded, where these may not.

Definition at line 27 of file cmd_nick.h.


Constructor & Destructor Documentation

CommandNick::CommandNick InspIRCd Instance  )  [inline]
 

Constructor for nick.

Definition at line 33 of file cmd_nick.h.

References Command::syntax.


Member Function Documentation

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

Handle command.

Parameters:
parameters The parameters to the comamnd
pcnt The number of parameters passed to teh command
user The user issuing the command
Returns:
A value from CmdResult to indicate command success or failure.

Implements Command.

CmdResult CommandNick::HandleInternal const unsigned int  id,
const std::deque< classbase * > &  parameters
[virtual]
 

Handle internal command.

Parameters:
id Used to indicate if invalid nick changes are allowed. Set to 1 to allow invalid nicks and 0 to deny them.
parameters Currently unused

Reimplemented from Command.


Member Data Documentation

bool CommandNick::allowinvalid [private]
 

Definition at line 29 of file cmd_nick.h.


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