#include "modules.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, '%', '@')
{
}
void ModeChannelHalfOp::RemoveMode(Channel* channel)
{
- CUList* list = channel->GetHalfoppedUsers();
+ CUList* clist = channel->GetHalfoppedUsers();
CUList copy;
char moderemove[MAXBUF];
- for (CUList::iterator i = list->begin(); i != list->end(); i++)
+ for (CUList::iterator i = clist->begin(); i != clist->end(); i++)
{
User* n = i->first;
copy.insert(std::make_pair(n,n->nick));
{
}
-ModeAction ModeChannelHalfOp::OnModeChange(User* source, User*, Channel* channel, std::string ¶meter, bool adding)
+ModeAction ModeChannelHalfOp::OnModeChange(User* source, User*, Channel* channel, std::string ¶meter, bool adding, bool servermode)
{
/* If halfops are not enabled in the conf, we don't execute
* anything in this class at all.