Lencana Facebook

6 Feb 2011

amik le amik le amik le

on *:TEXT:*:#:{
  if (%flood. [ $+ [ $chan ] ] == on) {
    inc -u5 %flood. [ $+ [ $nick ] ] 1
    if (%flood. [ $+ [ $nick ] ] >= 5) {
      /mode $chan +b $address($nick,0)
      /kick $chan $nick Flood Protection activated! This ban will expire in 10 minutes.
      .timer 1 600 /mode $chan -b $address($nick,0)
    }
  }
}
on *:TEXT:!flood *:#:{
  if ($nick isop $chan) {
    if ($2 == on) {
      set %flood. [ $+ [ $chan ] ] on
      msg $chan Flood protection now on. People will now be kick with 5 lines or more.
    }
    if ($2 == off) {
      unset %flood. [ $+ [ $chan ] ]
      msg $chan Flood protection now off.
    }
  }
  else {
    msg $chan Error: op je yg leh kai command ni.
  }
}
 

Tiada ulasan: