|
|||
|
|||
|
#include <cmode_o.h>
Inheritance diagram for ModeChannelOp:


Public Member Functions | |
| ModeChannelOp (InspIRCd *Instance) | |
| ModeAction | OnModeChange (User *source, User *dest, Channel *channel, std::string ¶meter, bool adding, bool servermode) |
| Called when a mode change for your mode occurs. | |
| std::string | AddOp (User *user, const char *dest, Channel *chan, int status) |
| std::string | DelOp (User *user, const char *dest, Channel *chan, int status) |
| 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. | |
| unsigned int | GetPrefixRank () |
| Get the 'value' of this modes prefix. | |
| void | RemoveMode (Channel *channel, irc::modestacker *stack=NULL) |
| 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=NULL) |
| When a MODETYPE_USER mode handler is being removed, the server will call this method for every user on the server. | |
Definition at line 21 of file cmode_o.h.
|
|
Definition at line 22 of file cmode_o.cpp. |
|
||||||||||||||||||||
|
Definition at line 100 of file cmode_o.cpp. References AC_OP, ACR_DEFAULT, ACR_DENY, FOREACH_RESULT, ModeParser::Grant(), I_OnAccessCheck, IS_LOCAL, InspIRCd::Modes, Channel::name, ModeParser::SanityChecks(), ModeHandler::ServerInstance, STATUS_OP, UCMODE_OP, and InspIRCd::ULine(). Referenced by OnModeChange(). |
|
||||||||||||||||||||
|
Definition at line 128 of file cmode_o.cpp. References AC_DEOP, ACR_DEFAULT, ACR_DENY, FOREACH_RESULT, I_OnAccessCheck, IS_LOCAL, InspIRCd::Modes, Channel::name, ModeParser::Revoke(), ModeParser::SanityChecks(), ModeHandler::ServerInstance, STATUS_OP, UCMODE_OP, and InspIRCd::ULine(). Referenced by OnModeChange(). |
|
|
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 26 of file cmode_o.cpp. References OP_VALUE. |
|
||||||||||||||||||||
|
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 31 of file cmode_o.cpp. References InspIRCd::FindNick(), Channel::GetStatusFlags(), ModeHandler::ServerInstance, and UCMODE_OP. |
|
||||||||||||||||||||||||||||
|
Called when a mode change for your mode occurs.
Reimplemented from ModeHandler. Definition at line 76 of file cmode_o.cpp. References AddOp(), DelOp(), Channel::GetStatus(), MODEACTION_ALLOW, and MODEACTION_DENY. |
|
||||||||||||
|
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 72 of file cmode_o.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 49 of file cmode_o.cpp. References InspIRCd::FakeClient, Channel::GetOppedUsers(), Channel::name, User::nick, irc::modestacker::Push(), InspIRCd::SendMode(), and ModeHandler::ServerInstance. |