From 8b864c8a828d6ca97b5ec15fa7bf8fcc35027294 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 23 Aug 2006 20:20:41 +0000 Subject: Mode handlers handling listmodes where a listmode item is a nickname can now specify prefixes!!!!!! This isnt documented yet. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4997 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modes/cmode_h.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/modes/cmode_h.cpp') 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); -- cgit v1.3.1-10-gc9f91