REQUIRE_PARAMS(2);
- if(IsProtected(channel->channel_info))
+ if(IsProtected(channel->channel_info) && !IsOper(user))
{
reply("CSMSG_MOVE_NODELETE", channel->name);
return 0;
return 0;
}
- if(IsProtected(channel->channel_info))
+ if(IsProtected(channel->channel_info) && !IsOper(user))
{
reply("CSMSG_MERGE_NODELETE");
return 0;
return 0;
}
- if(devnull_user_has_priv(user->handle_info, DEVNULL_MODE_OPME))
+ if(devnull_user_has_priv(user->handle_info, DEVNULL_PRIV_OPME))
{
change.args[0].mode = MODE_CHANOP;
errmsg = "CSMSG_ALREADY_OPPED";
REQUIRE_PARAMS(3);
- if(IsProtected(channel->channel_info))
+ if(IsProtected(channel->channel_info) && !IsOper(user))
{
reply("CSMSG_SUSPEND_NODELETE", channel->name);
return 0;