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

ModuleChgHost Class Reference

Inheritance diagram for ModuleChgHost:

Inheritance graph
[legend]
Collaboration diagram for ModuleChgHost:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ModuleChgHost (InspIRCd *Me)
void OnRehash (User *user, const std::string &parameter)
 Called on rehash.
 ~ModuleChgHost ()
Version GetVersion ()
 Returns the version number of a Module.

Private Attributes

CommandChghostmycommand
char hostmap [256]

Detailed Description

Definition at line 82 of file m_chghost.cpp.


Constructor & Destructor Documentation

ModuleChgHost::ModuleChgHost InspIRCd Me  )  [inline]
 

Definition at line 87 of file m_chghost.cpp.

References InspIRCd::AddCommand(), ModuleManager::Attach(), hostmap, I_OnRehash, InspIRCd::Modules, mycommand, OnRehash(), and Module::ServerInstance.

ModuleChgHost::~ModuleChgHost  )  [inline]
 

Definition at line 111 of file m_chghost.cpp.


Member Function Documentation

Version ModuleChgHost::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 115 of file m_chghost.cpp.

References API_VERSION, VF_COMMON, and VF_VENDOR.

void ModuleChgHost::OnRehash User user,
const std::string parameter
[inline, virtual]
 

Called on rehash.

This method is called prior to a /REHASH or when a SIGHUP is received from the operating system. You should use it to reload any files so that your module keeps in step with the rest of the application. If a parameter is given, the core has done nothing. The module receiving the event can decide if this parameter has any relevence to it.

Parameters:
user The user performing the rehash, if any -- if this is server initiated, the value of this variable will be NULL.
parameter The (optional) parameter given to REHASH from the user.

Reimplemented from Module.

Definition at line 98 of file m_chghost.cpp.

References Conf, hostmap, ConfigReader::ReadValue(), and Module::ServerInstance.

Referenced by ModuleChgHost().


Member Data Documentation

char ModuleChgHost::hostmap[256] [private]
 

Definition at line 85 of file m_chghost.cpp.

Referenced by ModuleChgHost(), and OnRehash().

CommandChghost* ModuleChgHost::mycommand [private]
 

Definition at line 84 of file m_chghost.cpp.

Referenced by ModuleChgHost().


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