|
|||
|
|||
|
Inheritance diagram for JoinFlood:


Public Member Functions | |
| JoinFlood (InspIRCd *Instance) | |
| ModePair | ModeSet (User *source, User *dest, Channel *channel, const std::string ¶meter) |
| When a remote server needs to bounce a set of modes, it will call this method for every mode in the mode string to determine if the mode is set or not. | |
| bool | CheckTimeStamp (time_t theirs, time_t ours, const std::string &their_param, const std::string &our_param, Channel *channel) |
| If your mode needs special action during a server sync to determine which side wins when comparing timestamps, override this function and use it to return true or false. | |
| ModeAction | OnModeChange (User *source, User *dest, Channel *channel, std::string ¶meter, bool adding, bool) |
| Called when a mode change for your mode occurs. | |
Definition at line 86 of file m_joinflood.cpp.
|
|
Definition at line 89 of file m_joinflood.cpp. |
|
||||||||||||||||||||||||
|
If your mode needs special action during a server sync to determine which side wins when comparing timestamps, override this function and use it to return true or false. The default implementation just returns true if theirs < ours. This will only be called for non-listmodes with parameters, when adding the mode and where theirs == ours (therefore the default implementation will always return false).
Reimplemented from ModeHandler. Definition at line 100 of file m_joinflood.cpp. |
|
||||||||||||||||||||
|
When a remote server needs to bounce a set of modes, it will call this method for every mode in the mode string to determine if the mode is set or not.
Reimplemented from ModeHandler. Definition at line 91 of file m_joinflood.cpp. References ConvToStr(), Extensible::GetExt(), joinfloodsettings::joins, and joinfloodsettings::secs. |
|
||||||||||||||||||||||||||||
|
Called when a mode change for your mode occurs.
Reimplemented from ModeHandler. Definition at line 106 of file m_joinflood.cpp. References ConvToStr(), dummy, Extensible::Extend(), Extensible::GetExt(), Channel::GetModeParameter(), MAXBUF, MODEACTION_ALLOW, MODEACTION_DENY, Channel::name, User::nick, ModeHandler::ServerInstance, Channel::SetMode(), Channel::SetModeParam(), Extensible::Shrink(), strlcpy(), and User::WriteNumeric(). |