diff options
Diffstat (limited to 'src/modes')
-rw-r--r-- | src/modes/cmode_h.cpp | 7 | ||||
-rw-r--r-- | src/modes/cmode_o.cpp | 7 | ||||
-rw-r--r-- | src/modes/cmode_v.cpp | 7 |
3 files changed, 18 insertions, 3 deletions
diff --git a/src/modes/cmode_h.cpp b/src/modes/cmode_h.cpp index 21c97cabc..1b0370439 100644 --- a/src/modes/cmode_h.cpp +++ b/src/modes/cmode_h.cpp @@ -14,10 +14,15 @@ #include "hashcomp.h" #include "modes/cmode_h.h" -ModeChannelHalfOp::ModeChannelHalfOp(InspIRCd* Instance) : ModeHandler(Instance, 'h', 1, 1, true, MODETYPE_CHANNEL, false) +ModeChannelHalfOp::ModeChannelHalfOp(InspIRCd* Instance) : ModeHandler(Instance, 'h', 1, 1, true, MODETYPE_CHANNEL, false, '%') { } +unsigned int ModeChannelHalfOp::GetPrefixRank() +{ + return HALFOP_VALUE; +} + ModePair ModeChannelHalfOp::ModeSet(userrec* source, userrec* dest, chanrec* channel, const std::string ¶meter) { userrec* x = ServerInstance->FindNick(parameter); diff --git a/src/modes/cmode_o.cpp b/src/modes/cmode_o.cpp index 0ab3d9d95..c631ec779 100644 --- a/src/modes/cmode_o.cpp +++ b/src/modes/cmode_o.cpp @@ -14,10 +14,15 @@ #include "hashcomp.h" #include "modes/cmode_o.h" -ModeChannelOp::ModeChannelOp(InspIRCd* Instance) : ModeHandler(Instance, 'o', 1, 1, true, MODETYPE_CHANNEL, false) +ModeChannelOp::ModeChannelOp(InspIRCd* Instance) : ModeHandler(Instance, 'o', 1, 1, true, MODETYPE_CHANNEL, false, '@') { } +unsigned int ModeChannelOp::GetPrefixRank() +{ + return OP_VALUE; +} + ModePair ModeChannelOp::ModeSet(userrec* source, userrec* dest, chanrec* channel, const std::string ¶meter) { userrec* x = ServerInstance->FindNick(parameter); diff --git a/src/modes/cmode_v.cpp b/src/modes/cmode_v.cpp index af1fbe22a..7b14d84d4 100644 --- a/src/modes/cmode_v.cpp +++ b/src/modes/cmode_v.cpp @@ -14,10 +14,15 @@ #include "hashcomp.h" #include "modes/cmode_v.h" -ModeChannelVoice::ModeChannelVoice(InspIRCd* Instance) : ModeHandler(Instance, 'v', 1, 1, true, MODETYPE_CHANNEL, false) +ModeChannelVoice::ModeChannelVoice(InspIRCd* Instance) : ModeHandler(Instance, 'v', 1, 1, true, MODETYPE_CHANNEL, false, '+') { } +unsigned int ModeChannelVoice::GetPrefixRank() +{ + return VOICE_VALUE; +} + ModePair ModeChannelVoice::ModeSet(userrec* source, userrec* dest, chanrec* channel, const std::string ¶meter) { userrec* x = ServerInstance->FindNick(parameter); |