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

ModuleHideChans Class Reference

Inheritance diagram for ModuleHideChans:

Inheritance graph
[legend]
Collaboration diagram for ModuleHideChans:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ModuleHideChans (InspIRCd *Me)
virtual ~ModuleHideChans ()
virtual Version GetVersion ()
 Returns the version number of a Module.
int OnWhoisLine (User *user, User *dest, int &numeric, std::string &text)
 Called whenever a line of WHOIS output is sent to a user.

Private Attributes

HideChanshm

Detailed Description

Definition at line 48 of file m_hidechans.cpp.


Constructor & Destructor Documentation

ModuleHideChans::ModuleHideChans InspIRCd Me  )  [inline]
 

Definition at line 53 of file m_hidechans.cpp.

References ModeParser::AddMode(), ModuleManager::Attach(), hm, I_OnWhoisLine, InspIRCd::Modes, InspIRCd::Modules, and Module::ServerInstance.

virtual ModuleHideChans::~ModuleHideChans  )  [inline, virtual]
 

Definition at line 65 of file m_hidechans.cpp.

References ModeParser::DelMode(), hm, InspIRCd::Modes, and Module::ServerInstance.


Member Function Documentation

virtual Version ModuleHideChans::GetVersion  )  [inline, virtual]
 

Returns the version number of a Module.

The method should return a Version object with its version information assigned via Version::Version

Reimplemented from Module.

Definition at line 71 of file m_hidechans.cpp.

References API_VERSION, VF_COMMON, and VF_VENDOR.

int ModuleHideChans::OnWhoisLine User user,
User dest,
int &  numeric,
std::string text
[inline, virtual]
 

Called whenever a line of WHOIS output is sent to a user.

You may change the numeric and the text of the output by changing the values numeric and text, but you cannot change the user the numeric is sent to. You may however change the user's User values.

Parameters:
user The user the numeric is being sent to
dest The user being WHOISed
numeric The numeric of the line being sent
text The text of the numeric, including any parameters
Returns:
nonzero to drop the line completely so that the user does not receive it, or zero to allow the line to be sent.

Reimplemented from Module.

Definition at line 76 of file m_hidechans.cpp.

References IS_OPER, and User::IsModeSet().


Member Data Documentation

HideChans* ModuleHideChans::hm [private]
 

Definition at line 51 of file m_hidechans.cpp.

Referenced by ModuleHideChans(), and ~ModuleHideChans().


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