|
|||
|
|||
|
#include <cmode_v.h>
Inheritance diagram for ModeChannelVoice:


Public Member Functions | |
| ModeChannelVoice (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 | AddVoice (User *user, const char *dest, Channel *chan, int status) |
| std::string | DelVoice (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 (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. | |
| 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. | |
Definition at line 21 of file cmode_v.h.
|
|
Definition at line 23 of file cmode_v.cpp. |
|
||||||||||||||||||||
|
Definition at line 100 of file cmode_v.cpp. References AC_VOICE, ACR_DEFAULT, ACR_DENY, FOREACH_RESULT, ModeParser::Grant(), I_OnAccessCheck, IS_LOCAL, InspIRCd::Modes, Channel::name, ModeParser::SanityChecks(), ModeHandler::ServerInstance, STATUS_HOP, UCMODE_VOICE, and InspIRCd::ULine(). Referenced by OnModeChange(). |
|
||||||||||||||||||||
|
Definition at line 128 of file cmode_v.cpp. References AC_DEVOICE, ACR_DEFAULT, ACR_DENY, FOREACH_RESULT, I_OnAccessCheck, IS_LOCAL, InspIRCd::Modes, Channel::name, ModeParser::Revoke(), ModeParser::SanityChecks(), ModeHandler::ServerInstance, STATUS_HOP, UCMODE_VOICE, 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 27 of file cmode_v.cpp. References VOICE_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 32 of file cmode_v.cpp. References InspIRCd::FindNick(), Channel::GetStatusFlags(), ModeHandler::ServerInstance, and UCMODE_VOICE. |
|
||||||||||||||||||||||||||||
|
Called when a mode change for your mode occurs.
Reimplemented from ModeHandler. Definition at line 76 of file cmode_v.cpp. References AddVoice(), DelVoice(), Channel::GetStatus(), MODEACTION_ALLOW, and MODEACTION_DENY. |
|
||||||||||||
|
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_v.cpp. References InspIRCd::FakeClient, Channel::GetVoicedUsers(), Channel::name, User::nick, irc::modestacker::Push(), InspIRCd::SendMode(), 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 72 of file cmode_v.cpp. |