|
|||
|
|||
|
Inheritance diagram for ChanProtect:


Public Member Functions | |
| ChanProtect (InspIRCd *Instance, char my_prefix, bool &depriv_self, bool &depriv_others) | |
| unsigned int | GetPrefixRank () |
| Get the 'value' of this modes prefix. | |
| ModePair | ModeSet (User *source, User *dest, Channel *channel, const std::string ¶meter) |
| void | RemoveMode (Channel *channel, irc::modestacker *stack) |
| When a MODETYPE_CHANNEL mode handler is being removed, the server will call this method for every channel on the server. | |
| void | RemoveMode (User *user, irc::modestacker *stack) |
| When a MODETYPE_USER mode handler is being removed, the server will call this method for every user on the server. | |
| ModeAction | OnModeChange (User *source, User *dest, Channel *channel, std::string ¶meter, bool adding, bool) |
| Called when a mode change for your mode occurs. | |
| virtual void | DisplayList (User *user, Channel *channel) |
Definition at line 223 of file m_chanprotect.cpp.
|
||||||||||||||||||||
|
Definition at line 226 of file m_chanprotect.cpp. |
|
||||||||||||
|
Reimplemented from FounderProtectBase. Definition at line 281 of file m_chanprotect.cpp. References FounderProtectBase::DisplayList(). |
|
|
Get the 'value' of this modes prefix. determines which to display when there are multiple. The mode with the highest value is ranked first. See the PrefixModeValue enum and Channel::GetPrefixValue() for more information. Reimplemented from ModeHandler. Definition at line 230 of file m_chanprotect.cpp. References PROTECT_VALUE. |
|
||||||||||||||||||||
|
Reimplemented from FounderProtectBase. Definition at line 235 of file m_chanprotect.cpp. References FounderProtectBase::ModeSet(). |
|
||||||||||||||||||||||||||||
|
Called when a mode change for your mode occurs.
Reimplemented from ModeHandler. Definition at line 249 of file m_chanprotect.cpp. References FounderProtectBase::CanRemoveOthers(), InspIRCd::FakeClient, FounderProtectBase::FindAndVerify(), FounderProtectBase::HandleChange(), IS_LOCAL, MODEACTION_DENY, Channel::name, FounderProtectBase::remove_own_privs, ModeHandler::ServerInstance, and InspIRCd::ULine(). |
|
||||||||||||
|
When a MODETYPE_USER mode handler is being removed, the server will call this method for every user on the server. Your mode handler should remove its user mode from the user by sending the appropriate server modes using InspIRCd::SendMode(). The default implementation of this method can remove simple modes which have no parameters, and can be used when your mode is of this type, otherwise you must implement a more advanced version of it to remove your mode properly from each user.
Reimplemented from ModeHandler. Definition at line 245 of file m_chanprotect.cpp. |
|
||||||||||||
|
When a MODETYPE_CHANNEL mode handler is being removed, the server will call this method for every channel on the server. Your mode handler should remove its user mode from the channel by sending the appropriate server modes using InspIRCd::SendMode(). The default implementation of this method can remove simple modes which have no parameters, and can be used when your mode is of this type, otherwise you must implement a more advanced version of it to remove your mode properly from each channel. Note that in the case of listmodes, you should remove the entire list of items.
Reimplemented from ModeHandler. Definition at line 240 of file m_chanprotect.cpp. References FounderProtectBase::RemoveMode(). |