|
|||
|
|||
|


Public Member Functions | |
| ModuleDelayJoin (InspIRCd *Me) | |
| virtual | ~ModuleDelayJoin () |
| virtual Version | GetVersion () |
| Returns the version number of a Module. | |
| virtual void | OnNamesListItem (User *issuer, User *user, Channel *channel, std::string &prefixes, std::string &nick) |
| Called for every item in a NAMES list, so that modules may reformat portions of it as they see fit. | |
| virtual void | OnUserJoin (User *user, Channel *channel, bool sync, bool &silent) |
| Called when a user joins a channel. | |
| 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. | |
| void | OnUserPart (User *user, Channel *channel, std::string &partmessage, bool &silent) |
| Called when a user parts a channel. | |
| void | OnUserKick (User *source, User *user, Channel *chan, const std::string &reason, bool &silent) |
| Called whenever a user is kicked. | |
| void | OnUserQuit (User *user, const std::string &reason, const std::string &oper_message) |
| Called when a user quits. | |
| void | OnText (User *user, void *dest, int target_type, const std::string &text, char status, CUList &exempt_list) |
| Called immediately before any NOTICE or PRIVMSG sent from a user, local or remote. | |
| void | WriteCommonFrom (User *user, Channel *channel, const char *text,...) CUSTOM_PRINTF(4 |
Private Attributes | |
| DelayJoinMode * | djm |
| CUList | nl |
Definition at line 28 of file m_delayjoin.cpp.
|
|
Definition at line 34 of file m_delayjoin.cpp. References ModeParser::AddMode(), ModuleManager::Attach(), djm, I_OnHostCycle, I_OnNamesListItem, I_OnText, I_OnUserJoin, I_OnUserKick, I_OnUserPart, I_OnUserQuit, InspIRCd::Modes, InspIRCd::Modules, and Module::ServerInstance. |
|
|
Definition at line 87 of file m_delayjoin.cpp. References ModeParser::DelMode(), djm, 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 93 of file m_delayjoin.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 159 of file m_delayjoin.cpp. References Extensible::GetExt(). |
|
||||||||||||||||||||||||
|
Called for every item in a NAMES list, so that modules may reformat portions of it as they see fit. For example NAMESX, channel mode +u and +I, and UHNAMES. If the nick is set to an empty string by any module, then this will cause the nickname not to be displayed at all. Reimplemented from Module. Definition at line 98 of file m_delayjoin.cpp. References Extensible::GetExt(), Channel::IsModeSet(), and Channel::name. |
|
||||||||||||||||||||||||||||
|
Called immediately before any NOTICE or PRIVMSG sent from a user, local or remote. The dest variable contains a User* if target_type is TYPE_USER and a Channel* if target_type is TYPE_CHANNEL. The difference between this event and OnUserPreNotice/OnUserPreMessage is that delivery is gauranteed, the message has already been vetted. In the case of the other two methods, a later module may stop your message. This also differs from OnUserMessage which occurs AFTER the message has been sent.
Reimplemented from Module. Definition at line 179 of file m_delayjoin.cpp. References User::chans, Extensible::GetExt(), InspIRCd::Modes, ModeParser::ModeString(), Channel::name, Module::ServerInstance, Extensible::Shrink(), TYPE_CHANNEL, and WriteCommonFrom(). |
|
||||||||||||||||||||
|
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 114 of file m_delayjoin.cpp. References Extensible::Extend(), Extensible::GetExt(), Channel::IsModeSet(), Channel::name, and User::WriteFrom(). |
|
||||||||||||||||||||||||
|
Called whenever a user is kicked. If this method is called, the kick is already underway and cannot be prevented, so to prevent a kick, please use Module::OnUserPreKick instead of this method.
Reimplemented from Module. Definition at line 146 of file m_delayjoin.cpp. References Extensible::GetExt(), Channel::IsModeSet(), Channel::name, User::nick, and User::WriteFrom(). |
|
||||||||||||||||||||
|
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 133 of file m_delayjoin.cpp. References Extensible::GetExt(), Channel::IsModeSet(), Channel::name, and User::WriteFrom(). |
|
||||||||||||||||
|
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 164 of file m_delayjoin.cpp. References User::chans, Extensible::GetExt(), CommandParser::GetHandler(), Command::Handle(), InspIRCd::Parser, and Module::ServerInstance. |
|
||||||||||||||||||||
|
Definition at line 214 of file m_delayjoin.cpp. References User::GetFullHost(), Channel::GetUsers(), MAXBUF, User::Visibility, and VisData::VisibleTo(). Referenced by OnText(). |
|
|
Definition at line 31 of file m_delayjoin.cpp. Referenced by ModuleDelayJoin(), and ~ModuleDelayJoin(). |
|
|
Definition at line 32 of file m_delayjoin.cpp. |