예제 #1
0
파일: flags.c 프로젝트: Mafaioz/wraith
int
real_chk_op(struct flag_record fr, struct chanset_t *chan, bool botbitch)
{
  if (!chan && glob_op(fr))
    return 1;
  else if (!chan)
    return 0;

  if (!privchan(fr, chan, PRIV_OP) && !real_chk_deop(fr, chan, botbitch)) {
    if (chan_op(fr) || (glob_op(fr) && !chan_deop(fr)))
      return 1;
  }
  return 0;
}
예제 #2
0
파일: flags.c 프로젝트: Estella/wraith
int chk_deop(struct flag_record fr, struct chanset_t *chan)
{
  return real_chk_deop(fr, chan, 1);
}