What it does: This script converts an RGB triplet (the red, blue, and green values of a color, and example would be 43,126,230) into a hex triplet (such as 2b7ee6.) I do acknowledge the fact that using $base($rgb($3,$2,$1),10,16) would have allowed me to cut 8 lines from the script, but I didn't want to use that.
Well my line of thinking was that since non-voiced people cannot talk in a moderated channel, checking if they\'re voiced is unnecessary. I check if they\'re oped because 1) devoicing and op has no effect, and 2) it\'s assumed that the ops are well-known frequenters of the channel, and thus won\'t cause need for this script, whereas normal voiced people will.
You should use var %i = 1 and a while loop instead of a goto loop, it\'s shorter, easier, and leaves less room for error.
var %i = 1
while (%i <= 20) {
var %nick = $nick(#,%i)
if (%nick isop #) notice $nick 4,13 $+ %nick is an Op!
if (%nick ishop #) notice $nick 7,13 $+ %nick is a Halfop!
if (%nick isvoice #) notice $nick 11,13 $+ %nick is Voice!
if (%nick isreg #) notice $nick 9,13 $+ %nick is a regualar...
inc %i
}
}
Well, the closing angled bracket after the name isn\'t white like it should be, you should fix that. I also suggest you don\'t color the text since I, for one, use a black background and it is unreadable. The default would be more acceptable. Other than that, well, it works I suppose. Not much of a use though.