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

ModuleModesOnConnect Class Reference

Inheritance diagram for ModuleModesOnConnect:

Inheritance graph
[legend]
Collaboration diagram for ModuleModesOnConnect:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Private Attributes

ConfigReaderConf

Detailed Description

Definition at line 18 of file m_conn_umodes.cpp.


Constructor & Destructor Documentation

ModuleModesOnConnect::ModuleModesOnConnect InspIRCd Me  )  [inline]
 

Definition at line 25 of file m_conn_umodes.cpp.

References ModuleManager::Attach(), Conf, I_OnRehash, I_OnUserConnect, InspIRCd::Modules, PRIO_FIRST, Module::ServerInstance, and ModuleManager::SetPriority().

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

Definition at line 42 of file m_conn_umodes.cpp.

References Conf.


Member Function Documentation

virtual Version ModuleModesOnConnect::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 47 of file m_conn_umodes.cpp.

References API_VERSION, and VF_VENDOR.

virtual void ModuleModesOnConnect::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 36 of file m_conn_umodes.cpp.

References Conf, and Module::ServerInstance.

virtual void ModuleModesOnConnect::OnUserConnect User user  )  [inline, virtual]
 

Called when a user connects.

The details of the connecting user are available to you in the parameter User *user

Parameters:
user The user who is connecting

Reimplemented from Module.

Definition at line 52 of file m_conn_umodes.cpp.

References CommandParser::CallHandler(), Conf, InspIRCd::Config, ServerConfig::DisabledUModes, User::GetIPString(), User::host, IS_LOCAL, InspIRCd::Match(), InspIRCd::MatchCIDR(), User::nick, InspIRCd::Parser, ConfigReader::ReadValue(), and Module::ServerInstance.


Member Data Documentation

ConfigReader* ModuleModesOnConnect::Conf [private]
 

Definition at line 22 of file m_conn_umodes.cpp.

Referenced by ModuleModesOnConnect(), OnRehash(), OnUserConnect(), and ~ModuleModesOnConnect().


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