All pastes #406043 Raw Edit

Stuff

public text v1 · immutable
·published 2007-03-22 03:05 UTC
rendered paste body
on *:kick:#: {
  var %x = 1
  while (%x < $nick($chan,0)) {    
    if ($address($knick,2) == $address($nick($chan,%x),2)) {
      if ($nick($chan,%x) == $knick) {
        inc %x
      }
      else {   
        var %clone = %clone $nick($chan,%x)
        inc %x
      }
    }
    else {
      inc %x
    }
  }
  msg $chan you just kicked $2 $+ , he is currently also under the nicks %clone
}
on *:ban:#: {
  var %x = 1
  while (%x < $nick($chan,0)) {    
    if ($address($bnick,2) == $address($nick($chan,%x),2)) {
      if ($nick($chan,%x) == $bnick) {
        inc %x
      }
      else {   
        var %clone = %clone $nick($chan,%x)
        inc %x
      }
    }
    else {
      inc %x
    }
  }
  msg $chan you just kicked $2 $+ , he is currently also under the nicks %clone
}