|
|||
|
|||
|


Public Member Functions | |
| ModuleInvisible (InspIRCd *Me) | |
| virtual | ~ModuleInvisible () |
| 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. | |
| virtual void | OnRehash (User *user, const std::string ¶meter) |
| Called on rehash. | |
| void | OnUserPart (User *user, Channel *channel, std::string &partmessage, bool &silent) |
| Called when a user parts a channel. | |
| void | OnUserQuit (User *user, const std::string &reason, const std::string &oper_message) |
| Called when a user quits. | |
| bool | OnHostCycle (User *user) |
| Called for every time the user's host or ident changes, to indicate wether or not the 'Changing host' message should be sent, if enabled. | |
| 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 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. | |
| void | WriteCommonFrom (User *user, Channel *channel, const char *text,...) CUSTOM_PRINTF(4 |
Private Attributes | |
| InvisibleMode * | qm |
| InvisibleDeOper * | ido |
Definition at line 150 of file m_invisible.cpp.
|
|
Definition at line 156 of file m_invisible.cpp. References ModeParser::AddMode(), ModeParser::AddModeWatcher(), ModuleManager::Attach(), I_OnHostCycle, I_OnRehash, I_OnUserJoin, I_OnUserPart, I_OnUserPreMessage, I_OnUserPreNotice, I_OnUserQuit, ido, InspIRCd::Modes, InspIRCd::Modules, qm, Module::ServerInstance, UserManager::ServerNoticeAll(), and InspIRCd::Users. |
|
|
Definition at line 173 of file m_invisible.cpp. References ModeParser::DelMode(), ModeParser::DelModeWatcher(), ido, InspIRCd::Modes, qm, 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 195 of file m_invisible.cpp. References API_VERSION, VF_COMMON, and VF_VENDOR. |
|
|
Called for every time the user's host or ident changes, to indicate wether or not the 'Changing host' message should be sent, if enabled. Certain modules such as auditorium may opt to hide this message even if it is enabled. Reimplemented from Module. Definition at line 251 of file m_invisible.cpp. References User::IsModeSet(). |
|
||||||||||||
|
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.
Reimplemented from Module. Definition at line 211 of file m_invisible.cpp. References Module::ServerInstance. |
|
||||||||||||||||||||
|
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
Reimplemented from Module. Definition at line 200 of file m_invisible.cpp. References User::GetFullHost(), User::IsModeSet(), Channel::name, Module::ServerInstance, InspIRCd::SNO, WriteCommonFrom(), and SnomaskManager::WriteToSnoMask(). |
|
||||||||||||||||||||
|
Called when a user parts a channel. The details of the leaving user are available to you in the parameter User *user, and the details of the channel they have left is available in the variable Channel *channel
Reimplemented from Module. Definition at line 217 of file m_invisible.cpp. References User::IsModeSet(), Channel::name, and WriteCommonFrom(). |
|
||||||||||||||||||||||||||||
|
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 271 of file m_invisible.cpp. References 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 257 of file m_invisible.cpp. References IS_LOCAL, IS_OPER, User::IsModeSet(), User::nick, TYPE_USER, and User::WriteNumeric(). Referenced by OnUserPreMessage(). |
|
||||||||||||||||
|
Called when a user quits. The details of the exiting user are available to you in the parameter User *user This event is only called when the user is fully registered when they quit. To catch raw disconnections, use the OnUserDisconnect method.
Reimplemented from Module. Definition at line 229 of file m_invisible.cpp. References User::chans, CommandParser::GetHandler(), Command::Handle(), User::IsModeSet(), InspIRCd::Parser, and Module::ServerInstance. |
|
||||||||||||||||||||
|
Definition at line 277 of file m_invisible.cpp. References User::GetFullHost(), Channel::GetUsers(), IS_LOCAL, IS_OPER, and MAXBUF. Referenced by OnUserJoin(), and OnUserPart(). |
|
|
Definition at line 154 of file m_invisible.cpp. Referenced by ModuleInvisible(), and ~ModuleInvisible(). |
|
|
Definition at line 153 of file m_invisible.cpp. Referenced by ModuleInvisible(), and ~ModuleInvisible(). |