|
|||
|
|||
|
#include <cmode_h.h>
Inheritance diagram for ModeChannelHalfOp:


Public Member Functions | |
| ModeChannelHalfOp (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 | AddHalfOp (User *user, const char *dest, Channel *chan, int status) |
| std::string | DelHalfOp (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_h.h.
|
|
Definition at line 22 of file cmode_h.cpp. |
|
||||||||||||||||||||
|
Definition at line 111 of file cmode_h.cpp. References AC_HALFOP, ACR_DEFAULT, ACR_DENY, FOREACH_RESULT, ModeParser::Grant(), I_OnAccessCheck, IS_LOCAL, InspIRCd::Modes, Channel::name, ModeParser::SanityChecks(), ModeHandler::ServerInstance, STATUS_OP, UCMODE_HOP, and InspIRCd::ULine(). Referenced by OnModeChange(). |
|
||||||||||||||||||||
|
Definition at line 139 of file cmode_h.cpp. References AC_DEHALFOP, ACR_DEFAULT, ACR_DENY, FOREACH_RESULT, I_OnAccessCheck, IS_LOCAL, InspIRCd::Modes, Channel::name, ModeParser::Revoke(), ModeParser::SanityChecks(), ModeHandler::ServerInstance, STATUS_OP, UCMODE_HOP, 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_h.cpp. References HALFOP_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_h.cpp. References InspIRCd::FindNick(), Channel::GetStatusFlags(), ModeHandler::ServerInstance, and UCMODE_HOP. |
|
||||||||||||||||||||||||||||
|
Called when a mode change for your mode occurs.
Reimplemented from ModeHandler. Definition at line 78 of file cmode_h.cpp. References AddHalfOp(), ServerConfig::AllowHalfop, InspIRCd::Config, DelHalfOp(), Channel::GetStatus(), MODEACTION_ALLOW, MODEACTION_DENY, and ModeHandler::ServerInstance. |
|
||||||||||||
|
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 74 of file cmode_h.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 48 of file cmode_h.cpp. References InspIRCd::FakeClient, Channel::GetHalfoppedUsers(), Channel::name, User::nick, irc::modestacker::Push(), InspIRCd::SendMode(), and ModeHandler::ServerInstance. |