Here's another thought:

Code:
raw 319:*: {
  if ($28) { kick #channel $2 Kick message here | ban #channel $2 3 }
}
OR:

raw 319:*: {
  if ((#chan1 isin $3-) || (#chan2 isin $3-) && ($28)) { kick #channel $2 Kick message here | ban #channel $2 3 }
}


Correct me if Im wrong, but if $27 is valid (meaning has a value) then $3 - $27 (total of 25 channels) would qualify as being on 25 channels and anything over that ($28) would be more and you wouldnt need the loop. PLEASE correct me if Im wrong tho.


Those who fail history are doomed to repeat it