|
|||
|
|||
|
Inheritance diagram for MsgFlood:


Public Member Functions | |
| MsgFlood (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 77 of file m_messageflood.cpp.
|
|
Definition at line 80 of file m_messageflood.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 91 of file m_messageflood.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 82 of file m_messageflood.cpp. References floodsettings::ban, ConvToStr(), Extensible::GetExt(), floodsettings::lines, and floodsettings::secs. |
|
||||||||||||||||||||||||||||
|
Called when a mode change for your mode occurs.
Reimplemented from ModeHandler. Definition at line 97 of file m_messageflood.cpp. References floodsettings::ban, ConvToStr(), Extensible::Extend(), Extensible::GetExt(), Channel::GetModeParameter(), floodsettings::lines, MAXBUF, MODEACTION_ALLOW, MODEACTION_DENY, Channel::name, User::nick, floodsettings::secs, ModeHandler::ServerInstance, Channel::SetMode(), Channel::SetModeParam(), Extensible::Shrink(), strlcpy(), and User::WriteNumeric(). |