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

ModuleOpermotd Class Reference

Inheritance diagram for ModuleOpermotd:

Inheritance graph
[legend]
Collaboration diagram for ModuleOpermotd:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void LoadOperMOTD ()
 ModuleOpermotd (InspIRCd *Me)
virtual ~ModuleOpermotd ()
virtual Version GetVersion ()
 Returns the version number of a Module.
virtual void OnOper (User *user, const std::string &opertype)
 Called whenever a user opers locally.
virtual void OnRehash (User *user, const std::string &parameter)
 Called on rehash.

Private Attributes

CommandOpermotdmycommand

Detailed Description

Definition at line 59 of file m_opermotd.cpp.


Constructor & Destructor Documentation

ModuleOpermotd::ModuleOpermotd InspIRCd Me  )  [inline]
 

Definition at line 78 of file m_opermotd.cpp.

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

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

Definition at line 90 of file m_opermotd.cpp.


Member Function Documentation

virtual Version ModuleOpermotd::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 94 of file m_opermotd.cpp.

References API_VERSION, and VF_VENDOR.

void ModuleOpermotd::LoadOperMOTD  )  [inline]
 

Definition at line 64 of file m_opermotd.cpp.

References conf, ConfigReader::ReadValue(), and Module::ServerInstance.

Referenced by ModuleOpermotd(), and OnRehash().

virtual void ModuleOpermotd::OnOper User user,
const std::string opertype
[inline, virtual]
 

Called whenever a user opers locally.

The User will contain the oper mode 'o' as this function is called after any modifications are made to the user's structure by the core.

Parameters:
user The user who is opering up
opertype The opers type name

Reimplemented from Module.

Definition at line 100 of file m_opermotd.cpp.

References ShowOperMOTD().

virtual void ModuleOpermotd::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 105 of file m_opermotd.cpp.

References LoadOperMOTD().


Member Data Documentation

CommandOpermotd* ModuleOpermotd::mycommand [private]
 

Definition at line 61 of file m_opermotd.cpp.

Referenced by ModuleOpermotd().


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