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

CommandWho Class Reference

Handle /WHO. More...

#include <cmd_who.h>

Inheritance diagram for CommandWho:

Inheritance graph
[legend]
Collaboration diagram for CommandWho:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CommandWho (InspIRCd *Instance)
 Constructor for who.
void SendWhoLine (User *user, const std::string &initial, Channel *ch, User *u, std::vector< std::string > &whoresults)
CmdResult Handle (const std::vector< std::string > &parameters, User *user)
 Handle command.
bool whomatch (User *user, const char *matchtext)

Private Member Functions

bool CanView (Channel *chan, User *user)

Private Attributes

bool opt_viewopersonly
bool opt_showrealhost
bool opt_unlimit
bool opt_realname
bool opt_mode
bool opt_ident
bool opt_metadata
bool opt_port
bool opt_away
bool opt_local
bool opt_far
bool opt_time

Detailed Description

Handle /WHO.

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_who.h.


Constructor & Destructor Documentation

CommandWho::CommandWho InspIRCd Instance  )  [inline]
 

Constructor for who.

Definition at line 46 of file cmd_who.h.

References Command::syntax.


Member Function Documentation

bool CommandWho::CanView Channel chan,
User user
[private]
 

CmdResult CommandWho::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.

void CommandWho::SendWhoLine User user,
const std::string initial,
Channel ch,
User u,
std::vector< std::string > &  whoresults
 

bool CommandWho::whomatch User user,
const char *  matchtext
 


Member Data Documentation

bool CommandWho::opt_away [private]
 

Definition at line 38 of file cmd_who.h.

bool CommandWho::opt_far [private]
 

Definition at line 40 of file cmd_who.h.

bool CommandWho::opt_ident [private]
 

Definition at line 35 of file cmd_who.h.

bool CommandWho::opt_local [private]
 

Definition at line 39 of file cmd_who.h.

bool CommandWho::opt_metadata [private]
 

Definition at line 36 of file cmd_who.h.

bool CommandWho::opt_mode [private]
 

Definition at line 34 of file cmd_who.h.

bool CommandWho::opt_port [private]
 

Definition at line 37 of file cmd_who.h.

bool CommandWho::opt_realname [private]
 

Definition at line 33 of file cmd_who.h.

bool CommandWho::opt_showrealhost [private]
 

Definition at line 31 of file cmd_who.h.

bool CommandWho::opt_time [private]
 

Definition at line 41 of file cmd_who.h.

bool CommandWho::opt_unlimit [private]
 

Definition at line 32 of file cmd_who.h.

bool CommandWho::opt_viewopersonly [private]
 

Definition at line 30 of file cmd_who.h.


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