|
|||
|
|||
|


Public Member Functions | |
| ModuleAllowInvite (InspIRCd *Me) | |
| virtual void | On005Numeric (std::string &output) |
| Called when a 005 numeric is about to be output. | |
| virtual int | OnUserPreInvite (User *user, User *dest, Channel *channel, time_t timeout) |
| Called whenever a user is about to invite another user into a channel, before any processing is done. | |
| virtual | ~ModuleAllowInvite () |
| virtual Version | GetVersion () |
| Returns the version number of a Module. | |
Private Attributes | |
| AllowInvite * | ni |
Definition at line 24 of file m_allowinvite.cpp.
|
|
Definition at line 29 of file m_allowinvite.cpp. References ModeParser::AddMode(), ModuleManager::Attach(), I_On005Numeric, I_OnUserPreInvite, InspIRCd::Modes, InspIRCd::Modules, ni, and Module::ServerInstance. |
|
|
Definition at line 57 of file m_allowinvite.cpp. References ModeParser::DelMode(), InspIRCd::Modes, ni, and Module::ServerInstance. |
|
|
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 63 of file m_allowinvite.cpp. References API_VERSION, VF_COMMON, and VF_VENDOR. |
|
|
Called when a 005 numeric is about to be output. The module should modify the 005 numeric if needed to indicate its features.
Reimplemented from Module. Definition at line 38 of file m_allowinvite.cpp. References InspIRCd::AddExtBanChar(), and Module::ServerInstance. |
|
||||||||||||||||||||
|
Called whenever a user is about to invite another user into a channel, before any processing is done. Returning 1 from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to filter invites to channels.
Reimplemented from Module. Definition at line 43 of file m_allowinvite.cpp. References IS_LOCAL, Channel::IsExtBanned(), and Channel::IsModeSet(). |
|
|
Definition at line 26 of file m_allowinvite.cpp. Referenced by ModuleAllowInvite(), and ~ModuleAllowInvite(). |