I have this loop in my script:
Code:
alias who-cline {
  var %g = 1
  while ($chan(0) >= %g) {
    who $chan(%g)
    inc %g
  }
}

and im not shure if this is the best way to do what i want, i coloring the nick's in nicklist, i have colors for op/opers/vo/notify/ignore/away and regular users, the problem i have is that if i join many channels at once, then the code make me flood out, and i cant get it to stop doing this, i dont know how i can solve this problem. any ideas would be nice. the rest of the code is this:
Code:
raw 352:*: {
  haltdef
  if ($me !ison $2) { return }
  elseif (* isin $7) { cline $clinecol(po) $2 $6 }
  elseif ($6 isnotify) { cline $clinecol(no) $2 $6 }
  elseif (G isin $7) { cline $clinecol(aw) $2 $6 }
}

alias clinecol {
 if ($1 == po) { return 05 }
 if ($1 == no) { return 03 }
 if ($1 == aw) { return 02 }
}

the rest of the colors are grabed by the users status on the channel so i using two aliases for the coloring.

po = oper
no = notify
aw = away

PS: it's impossible to grab oper/ignore/away in any other way then use /who ?


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }