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

CommandSethost Class Reference

Handle /SETHOST. More...

Inheritance diagram for CommandSethost:

Inheritance graph
[legend]
Collaboration diagram for CommandSethost:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Private Attributes

char * hostmap

Detailed Description

Handle /SETHOST.

Definition at line 20 of file m_sethost.cpp.


Constructor & Destructor Documentation

CommandSethost::CommandSethost InspIRCd Instance,
char *  hmap
[inline]
 

Definition at line 25 of file m_sethost.cpp.

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


Member Function Documentation

CmdResult CommandSethost::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 32 of file m_sethost.cpp.

References User::ChangeDisplayedHost(), CMD_FAILURE, CMD_LOCALONLY, User::dhost, hostmap, User::nick, Command::ServerInstance, InspIRCd::SNO, User::WriteServ(), and SnomaskManager::WriteToSnoMask().


Member Data Documentation

char* CommandSethost::hostmap [private]
 

Definition at line 23 of file m_sethost.cpp.

Referenced by Handle().


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