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

ModuleConnJoin Class Reference

Inheritance diagram for ModuleConnJoin:

Inheritance graph
[legend]
Collaboration diagram for ModuleConnJoin:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ModuleConnJoin (InspIRCd *Me)
void Prioritize ()
virtual void OnRehash (User *user, const std::string &parameter)
 Called on rehash.
virtual ~ModuleConnJoin ()
virtual Version GetVersion ()
 Returns the version number of a Module.
virtual void OnPostConnect (User *user)
 Called after a user has fully connected and all modules have executed OnUserConnect This event is informational only.

Private Member Functions

int tokenize (const std::string &str, std::vector< std::string > &tokens)

Private Attributes

std::string JoinChan
std::vector< std::stringJoinchans

Detailed Description

Definition at line 18 of file m_conn_join.cpp.


Constructor & Destructor Documentation

ModuleConnJoin::ModuleConnJoin InspIRCd Me  )  [inline]
 

Definition at line 45 of file m_conn_join.cpp.

References ModuleManager::Attach(), I_OnPostConnect, I_OnRehash, InspIRCd::Modules, OnRehash(), and Module::ServerInstance.

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

Definition at line 69 of file m_conn_join.cpp.


Member Function Documentation

virtual Version ModuleConnJoin::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 73 of file m_conn_join.cpp.

References API_VERSION, and VF_VENDOR.

virtual void ModuleConnJoin::OnPostConnect User user  )  [inline, virtual]
 

Called after a user has fully connected and all modules have executed OnUserConnect This event is informational only.

You should not change any user information in this event. To do so, use the OnUserConnect method to change the state of local users. This is called for both local and remote users.

Parameters:
user The user who is connecting

Reimplemented from Module.

Definition at line 78 of file m_conn_join.cpp.

References ServerLimits::ChanMax, InspIRCd::Config, IS_LOCAL, InspIRCd::IsChannel, Joinchans, Channel::JoinUser(), ServerConfig::Limits, Module::ServerInstance, and InspIRCd::Time().

virtual void ModuleConnJoin::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 59 of file m_conn_join.cpp.

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

Referenced by ModuleConnJoin().

void ModuleConnJoin::Prioritize  )  [inline, virtual]
 

Reimplemented from Module.

Definition at line 53 of file m_conn_join.cpp.

References I_OnPostConnect, InspIRCd::Modules, PRIO_LAST, Module::ServerInstance, and ModuleManager::SetPriority().

int ModuleConnJoin::tokenize const std::string str,
std::vector< std::string > &  tokens
[inline, private]
 

Definition at line 25 of file m_conn_join.cpp.

Referenced by OnRehash().


Member Data Documentation

std::string ModuleConnJoin::JoinChan [private]
 

Definition at line 21 of file m_conn_join.cpp.

Referenced by OnRehash().

std::vector<std::string> ModuleConnJoin::Joinchans [private]
 

Definition at line 22 of file m_conn_join.cpp.

Referenced by OnPostConnect(), and OnRehash().


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