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

ModuleChanCreate Class Reference

Inheritance diagram for ModuleChanCreate:

Inheritance graph
[legend]
Collaboration diagram for ModuleChanCreate:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ModuleChanCreate (InspIRCd *Me)
virtual ~ModuleChanCreate ()
virtual Version GetVersion ()
 Returns the version number of a Module.
virtual void OnUserJoin (User *user, Channel *channel, bool sync, bool &silent)
 Called when a user joins a channel.

Detailed Description

Definition at line 18 of file m_chancreate.cpp.


Constructor & Destructor Documentation

ModuleChanCreate::ModuleChanCreate InspIRCd Me  )  [inline]
 

Definition at line 22 of file m_chancreate.cpp.

References ModuleManager::Attach(), SnomaskManager::EnableSnomask(), I_OnUserJoin, InspIRCd::Modules, Module::ServerInstance, and InspIRCd::SNO.

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

Definition at line 31 of file m_chancreate.cpp.

References SnomaskManager::DisableSnomask(), Module::ServerInstance, and InspIRCd::SNO.


Member Function Documentation

virtual Version ModuleChanCreate::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 37 of file m_chancreate.cpp.

References API_VERSION, and VF_VENDOR.

virtual void ModuleChanCreate::OnUserJoin User user,
Channel channel,
bool  sync,
bool &  silent
[inline, virtual]
 

Called when a user joins a channel.

The details of the joining user are available to you in the parameter User *user, and the details of the channel they have joined is available in the variable Channel *channel

Parameters:
user The user who is joining
channel The channel being joined
silent Change this to true if you want to conceal the JOIN command from the other users of the channel (useful for modules such as auditorium)
sync This is set to true if the JOIN is the result of a network sync and the remote user is being introduced to a channel due to the network sync.

Reimplemented from Module.

Definition at line 43 of file m_chancreate.cpp.

References Channel::GetUserCounter(), User::host, User::ident, IS_LOCAL, Channel::IsModeSet(), Channel::name, User::nick, Module::ServerInstance, InspIRCd::SNO, and SnomaskManager::WriteToSnoMask().


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