|
|||
|
|||
|
Inheritance diagram for NickFlood:


Public Member Functions | |
| NickFlood (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 88 of file m_nickflood.cpp.
|
|
Definition at line 91 of file m_nickflood.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 102 of file m_nickflood.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 93 of file m_nickflood.cpp. References ConvToStr(), Extensible::GetExt(), nickfloodsettings::nicks, and nickfloodsettings::secs. |
|
||||||||||||||||||||||||||||
|
Called when a mode change for your mode occurs.
Reimplemented from ModeHandler. Definition at line 108 of file m_nickflood.cpp. References ConvToStr(), dummy, Extensible::Extend(), Extensible::GetExt(), Channel::GetModeParameter(), MAXBUF, MODEACTION_ALLOW, MODEACTION_DENY, Channel::name, User::nick, Channel::SetMode(), Channel::SetModeParam(), Extensible::Shrink(), strlcpy(), and User::WriteNumeric(). |