|
|||
|
|||
|


Public Member Functions | |
| ModuleBlockColour (InspIRCd *Me) | |
| virtual void | On005Numeric (std::string &output) |
| Called when a 005 numeric is about to be output. | |
| virtual int | OnUserPreMessage (User *user, void *dest, int target_type, std::string &text, char status, CUList &exempt_list) |
| Called whenever a user is about to PRIVMSG A user or a channel, before any processing is done. | |
| virtual int | OnUserPreNotice (User *user, void *dest, int target_type, std::string &text, char status, CUList &exempt_list) |
| Called whenever a user is about to NOTICE A user or a channel, before any processing is done. | |
| virtual | ~ModuleBlockColour () |
| virtual Version | GetVersion () |
| Returns the version number of a Module. | |
Private Attributes | |
| bool | AllowChanOps |
| BlockColor * | bc |
Definition at line 26 of file m_blockcolor.cpp.
|
|
Definition at line 32 of file m_blockcolor.cpp. References ModeParser::AddMode(), ModuleManager::Attach(), bc, I_On005Numeric, I_OnUserPreMessage, I_OnUserPreNotice, InspIRCd::Modes, InspIRCd::Modules, and Module::ServerInstance. |
|
|
Definition at line 84 of file m_blockcolor.cpp. References bc, ModeParser::DelMode(), InspIRCd::Modes, 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 90 of file m_blockcolor.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 41 of file m_blockcolor.cpp. References InspIRCd::AddExtBanChar(), and Module::ServerInstance. |
|
||||||||||||||||||||||||||||
|
Called whenever a user is about to PRIVMSG A user or a channel, before any processing is done. Returning any nonzero value 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 or redirect messages. target_type can be one of TYPE_USER or TYPE_CHANNEL. If the target_type value is a user, you must cast dest to a User* otherwise you must cast it to a Channel*, this is the details of where the message is destined to be sent.
Reimplemented from Module. Definition at line 46 of file m_blockcolor.cpp. References CHANOPS_EXEMPT, Channel::GetStatus(), IS_LOCAL, Channel::IsExtBanned(), Channel::IsModeSet(), Channel::name, User::nick, Module::ServerInstance, STATUS_OP, TYPE_CHANNEL, and User::WriteNumeric(). Referenced by OnUserPreNotice(). |
|
||||||||||||||||||||||||||||
|
Called whenever a user is about to NOTICE A user or a channel, before any processing is done. Returning any nonzero value 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 or redirect messages. target_type can be one of TYPE_USER or TYPE_CHANNEL. If the target_type value is a user, you must cast dest to a User* otherwise you must cast it to a Channel*, this is the details of where the message is destined to be sent. You may alter the message text as you wish before relinquishing control to the next module in the chain, and if no other modules block the text this altered form of the text will be sent out to the user and possibly to other servers.
Reimplemented from Module. Definition at line 79 of file m_blockcolor.cpp. References OnUserPreMessage(). |
|
|
Definition at line 28 of file m_blockcolor.cpp. |
|
|
Definition at line 29 of file m_blockcolor.cpp. Referenced by ModuleBlockColour(), and ~ModuleBlockColour(). |