All pastes #444946 Raw Edit

Someone

public text v1 · immutable
·published 2007-04-17 16:40 UTC
rendered paste body
in aliases:

/v /mode $chan +v $1
/h /mode $chan +h $1
/o /mode $chan +o $1
/-v /mode $chan -v $1
/-h /mode $chan -h $1
/-o /mode $chan -o $1
/kb /cs ban $chan $1 $2-




on *:TEXT:*:#tzhaar:{ if ($nick isop $chan) {
    if ($1 == !setaccess) && ($2 == op) { set %access.[ $+ [ $3 ] ] op
      notice $nick als $3 nu joint is hij/zij op
    }
    if ($2 == halfop) && ($1 == !setaccess) { set %access.[ $+ [ $3 ] ] halfop
      notice $nick als $3 nu joint is hij/zij halfop
    }
    if ($2 == voice) && ($1 == !setaccess) { set %access.[ $+ [ $3 ] ] voice 
      notice $nick als $3 nu joint is hij/zij voice
    }
    if ($2 == normal) && ($1 == !setaccess) { set %access.[ $+ [ $3 ] ] normal
      notice $nick als $3 nu joint is hij/zij normaal
    } 
    if ($2 == kb) && ($1 == !setaccess) { set %access.[ $+ [ $3 ] ] kb
      set %reden.[ $+ [ $4- ] ]
      notice $nick als $3 nu joint krijgt hij/zij een kickban vanwege %reden.[ $+ [ $4- ] ]
    } 
  }
  if ($1 == !accessmij) { notice $nick jij hebt als access: %access.[ $+ [ $3 ] ] }
  if ($1 == !access) { notice $nick $2 heeft als access %access.[ $+ [ $2 ] ]
  }
}

on *:join:#tzhaar:{ 
  if (%access.[ $+ [ $nick ] ] == halfop) { /h $nick
    /-o $nick
  /-v $nick }
  if (%access.[ $+ [ $nick ] ] == voice) { /v $nick
    /-o $nick
  /-h $nick }
  if (%access.[ $+ [ $nick ] ] == op) { /o $nick
    /-v $nick
    /-h $nick
  }
  if (%access.[ $+ [ $nick ] ] == normal) { /-o $nick 
    /-h $nick
  /-v $nick } 
  if (%access.[ $+ [ $nick ] ] == kb) { /kb $nick [ $+ [ $nick ] ] 
  }
}