|
|||
|
|||
|
Inheritance diagram for Redirect:


Public Member Functions | |
| Redirect (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 20 of file m_redirect.cpp.
|
|
Definition at line 23 of file m_redirect.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 33 of file m_redirect.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 25 of file m_redirect.cpp. References Channel::GetModeParameter(), and Channel::IsModeSet(). |
|
||||||||||||||||||||||||||||
|
Called when a mode change for your mode occurs.
Reimplemented from ModeHandler. Definition at line 39 of file m_redirect.cpp. References ServerLimits::ChanMax, InspIRCd::Config, InspIRCd::FindChan(), Channel::GetStatus(), IS_LOCAL, IS_OPER, InspIRCd::IsChannel, Channel::IsModeSet(), ServerConfig::Limits, MODEACTION_ALLOW, MODEACTION_DENY, User::nick, ModeHandler::ServerInstance, Channel::SetMode(), Channel::SetModeParam(), STATUS_OP, and User::WriteNumeric(). |