Okay it seems I was confused.

Let me call this "while loop error."

* Someone sets mode: +b letter
Ban affects 3 nicks.

Code:
  echo $chan $gettok($mid(%bannick,3),1,44)
  echo $chan $gettok($mid(%bannick,3),2,44)
  echo $chan $gettok($mid(%bannick,3),3,44)
  echo $chan $gettok($mid(%bannick,3),0,44)
  var %i = 1
  while (%i <= $gettok($mid(%bannick,3),0,44)) {
    /set %bnick $+ $gettok($mid(%bannick,3),%i,44) $banmask
    inc %i
  }


[July 15 2007 Sunday 03:43:11 PM] * Neal` sets mode: +b f*!*@*
found_20
found_22
Fara7oOo
3

Well, only %bnickfound_20 was made, but not the other 2. In other words, the while loop only goes round the 1st time, even though 1 < 3...

-Neal.