int status = channel->GetStatus(source);
- ServerInstance->Log(DEBUG,"Halfop handler, source=%s channel=%s parameter=%s adding=%d",source->nick, channel->name, parameter.c_str(), adding);
-
/* Call the correct method depending on wether we're adding or removing the mode */
if (adding)
{
{
userrec *d = ServerInstance->Modes->SanityChecks(user,dest,chan,status);
- ServerInstance->Log(DEBUG,"Add halfop");
-
if (d)
{
if (IS_LOCAL(user))
}
}
- ServerInstance->Log(DEBUG,"Calling Grant");
return ServerInstance->Modes->Grant(d,chan,UCMODE_HOP);
}
return "";
{
userrec *d = ServerInstance->Modes->SanityChecks(user,dest,chan,status);
- ServerInstance->Log(DEBUG,"Del halfop");
-
if (d)
{
if (IS_LOCAL(user))
}
}
- ServerInstance->Log(DEBUG,"Calling revoke");
return ServerInstance->Modes->Revoke(d,chan,UCMODE_HOP);
}
return "";