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

cmd_mode Class Reference

Handle /MODE. More...

#include <cmd_mode.h>

Inheritance diagram for cmd_mode:

Inheritance graph
[legend]
Collaboration diagram for cmd_mode:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 cmd_mode (InspIRCd *Instance)
 Constructor for mode.
CmdResult Handle (const char **parameters, int pcnt, userrec *user)
 Handle command.

Detailed Description

Handle /MODE.

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 26 of file cmd_mode.h.


Constructor & Destructor Documentation

cmd_mode::cmd_mode InspIRCd Instance  )  [inline]
 

Constructor for mode.

Definition at line 31 of file cmd_mode.h.

References command_t::syntax.

00031 : command_t(Instance,"MODE",0,1) { syntax = "<target> <modes> {<mode-parameters>}"; }


Member Function Documentation

CmdResult cmd_mode::Handle const char **  parameters,
int  pcnt,
userrec 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_t.

Definition at line 26 of file cmd_mode.cpp.

References CMD_SUCCESS, InspIRCd::Modes, ModeParser::Process(), and command_t::ServerInstance.

00027 {
00028         ServerInstance->Modes->Process(parameters, pcnt, user, false);
00029         return CMD_SUCCESS;
00030 }


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