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

ModuleBotMode Class Reference

Inheritance diagram for ModuleBotMode:

Inheritance graph
[legend]
Collaboration diagram for ModuleBotMode:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ModuleBotMode (InspIRCd *Me)
virtual ~ModuleBotMode ()
virtual Version GetVersion ()
 Returns the version number of a Module.
virtual void OnWhois (User *src, User *dst)
 Called whenever a /WHOIS is performed on a local user.

Private Attributes

BotModebm

Detailed Description

Definition at line 26 of file m_botmode.cpp.


Constructor & Destructor Documentation

ModuleBotMode::ModuleBotMode InspIRCd Me  )  [inline]
 

Definition at line 31 of file m_botmode.cpp.

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

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

Definition at line 43 of file m_botmode.cpp.

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


Member Function Documentation

virtual Version ModuleBotMode::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 49 of file m_botmode.cpp.

References API_VERSION, VF_COMMON, and VF_VENDOR.

virtual void ModuleBotMode::OnWhois User src,
User dst
[inline, virtual]
 

Called whenever a /WHOIS is performed on a local user.

The source parameter contains the details of the user who issued the WHOIS command, and the dest parameter contains the information of the user they are whoising.

Parameters:
source The user issuing the WHOIS command
dest The user who is being WHOISed

Reimplemented from Module.

Definition at line 54 of file m_botmode.cpp.

References InspIRCd::Config, User::IsModeSet(), ServerConfig::Network, User::nick, InspIRCd::SendWhoisLine(), and Module::ServerInstance.


Member Data Documentation

BotMode* ModuleBotMode::bm [private]
 

Definition at line 29 of file m_botmode.cpp.

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


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