My script now looks like this:

Code:
alias colors {
  echo -a Applying colors :]
  var %chans = 1
  while ( %chans <= $chan(0) ) {
    var %nicks = 1
    while ( %nicks <= $nick(%chans,0) ) {
      cline $rand(0,15) $chan(%chans) $nick($chan(%chans),%nicks)
      inc %nicks
    }
    inc %chans
  }
}


However, it still does nothing.