$nick().color = 0 for no-such-nick - 25/11/20 10:10 AM
When $nick() uses a not-present nick or an invalid index number with the .color prop, it returns 0 instead of $null, indicating the color is white
//echo -a $nick($chan, nosuchnick).color should be null instead of zero
For this next example I had to insert an extra 9999 check because it was difficult to get it to respond to control break to exit the infinite loop
//var %i 1 | while ($nick($chan,%i).color != $null) { echo -a i= %i nick= $nick($chan,%i) color= $v1 | inc %i | if (%i > 9999) halt }
edit: the .idle property is also returning zero for these same cases
//echo -a $nick($chan, nosuchnick).color should be null instead of zero
For this next example I had to insert an extra 9999 check because it was difficult to get it to respond to control break to exit the infinite loop
//var %i 1 | while ($nick($chan,%i).color != $null) { echo -a i= %i nick= $nick($chan,%i) color= $v1 | inc %i | if (%i > 9999) halt }
edit: the .idle property is also returning zero for these same cases