* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
- * InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ * InspIRCd: (C) 2002-2008 InspIRCd Development Team
* See: http://www.inspircd.org/wiki/index.php/Credits
*
* This program is free but copyrighted software; see
#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, '%', '@')
{
}
return HALFOP_VALUE;
}
-ModePair ModeChannelHalfOp::ModeSet(User* source, User* dest, Channel* channel, const std::string ¶meter)
+ModePair ModeChannelHalfOp::ModeSet(User*, User*, Channel* channel, const std::string ¶meter)
{
User* x = ServerInstance->FindNick(parameter);
if (x)
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));
}
-void ModeChannelHalfOp::RemoveMode(User* user)
+void ModeChannelHalfOp::RemoveMode(User*)
{
}
-ModeAction ModeChannelHalfOp::OnModeChange(User* source, User* dest, 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.