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

ModulePermanentChannels Class Reference

Inheritance diagram for ModulePermanentChannels:

Inheritance graph
[legend]
Collaboration diagram for ModulePermanentChannels:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ModulePermanentChannels (InspIRCd *Me)
virtual ~ModulePermanentChannels ()
virtual void OnRehash (User *user, const std::string &parameter)
 Called on rehash.
virtual Version GetVersion ()
 Returns the version number of a Module.
virtual int OnChannelPreDelete (Channel *c)
 Called whenever a channel is about to be deleted.

Private Attributes

PermChannelp

Detailed Description

Definition at line 72 of file m_permchannels.cpp.


Constructor & Destructor Documentation

ModulePermanentChannels::ModulePermanentChannels InspIRCd Me  )  [inline]
 

Definition at line 77 of file m_permchannels.cpp.

References ModeParser::AddMode(), ModuleManager::Attach(), I_OnChannelPreDelete, InspIRCd::Modes, InspIRCd::Modules, OnRehash(), p, and Module::ServerInstance.

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

Definition at line 91 of file m_permchannels.cpp.

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


Member Function Documentation

virtual Version ModulePermanentChannels::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 152 of file m_permchannels.cpp.

References API_VERSION, VF_COMMON, and VF_VENDOR.

virtual int ModulePermanentChannels::OnChannelPreDelete Channel c  )  [inline, virtual]
 

Called whenever a channel is about to be deleted.

Parameters:
chan The channel being deleted
Returns:
An integer specifying whether or not the channel may be deleted. 0 for yes, 1 for no.

Reimplemented from Module.

Definition at line 157 of file m_permchannels.cpp.

References Channel::IsModeSet().

virtual void ModulePermanentChannels::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 97 of file m_permchannels.cpp.

References DEBUG, ConfigReader::Enumerate(), InspIRCd::FakeClient, InspIRCd::FindChan(), ModeParser::FindMode(), ModeHandler::GetNumParams(), irc::sepstream::GetToken(), LogManager::Log(), InspIRCd::Logs, InspIRCd::Modes, MODETYPE_CHANNEL, ModeHandler::OnModeChange(), ConfigReader::ReadValue(), Module::ServerInstance, Channel::SetTopic(), and InspIRCd::Time().

Referenced by ModulePermanentChannels().


Member Data Documentation

PermChannel* ModulePermanentChannels::p [private]
 

Definition at line 74 of file m_permchannels.cpp.

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


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