napa182 commented on a Page, CTCP Unban Script  -  Apr 12, 2008

you could also do it like this as well to reduce mode flood

ctcp *:unban:?: {
  if ($3 !ischan) { .msg $Nick You must select a channel. | halt }
  var %a = $Ibl($3,0), %b = 0
  while ( %b <= %a ) {
    if ($Ibl($3,%b) iswm $address($2,5)) { var %unbann $addtok(%unbann,$IfMatch,32) }
    inc %b
  }
  mode $3 - $+ $str(b,%b) %unbann
}
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.