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

ModuleHideOper Class Reference

Inheritance diagram for ModuleHideOper:

Inheritance graph
[legend]
Collaboration diagram for ModuleHideOper:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ModuleHideOper (InspIRCd *Me)
virtual ~ModuleHideOper ()
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

HideOperhm

Detailed Description

Definition at line 48 of file m_hideoper.cpp.


Constructor & Destructor Documentation

ModuleHideOper::ModuleHideOper InspIRCd Me  )  [inline]
 

Definition at line 53 of file m_hideoper.cpp.

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

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

Definition at line 65 of file m_hideoper.cpp.

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


Member Function Documentation

virtual Version ModuleHideOper::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_hideoper.cpp.

References API_VERSION, VF_COMMON, and VF_VENDOR.

int ModuleHideOper::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_hideoper.cpp.

References IS_OPER, and User::IsModeSet().


Member Data Documentation

HideOper* ModuleHideOper::hm [private]
 

Definition at line 51 of file m_hideoper.cpp.

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


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