This script has been requested by a friend who loves highlight everyone when he joins channel to say "Hello" :P
Usage:
/masshl -ohvr
(
Use "o" if you want to hl ops
Use "h" if you want to hl halfops
Use "v" if you want to hl voices
Use "r" if you want to hl normal users
If you want to hl everyone use:
/masshl
)
If you want, select all nicks you want to hl in nicklist and righ-click them and after click on "Mass HL"
alias masshl {
if ($left($1,1) == -) { var %massu $iif(a isin $1 || o isin $1 || h isin $1 || v isin $1 || r isin $1,$remove($1,-),a) | tokenize 32 $2- }
else { var %massu a }
var %x 1 | var %msg $iif($1,=> $+ $1-) | tokenize 32
while (%x <= $nick(#,0,%massu)) { if ($nick(#,%x,%massu) != $me) { tokenize 32 $1- $nick(#,%x,%massu) }
inc %x
}
tokenize 32 $1- %msg
while ($$1-) { say $1-30 | tokenize 32 $31- }
}
menu nicklist {
.Mass HL {
var %msg $?="Message?" | var %msg $iif(%msg,=> $+ %msg) | tokenize 32 $replace($snicks,$chr(44),$chr(32))
tokenize 32 $1- %msg
while ($$1-) { say $1-30 | tokenize 32 $31- }
}
}
Yup I could, but I don't particularly fancy regsubex loop for this. Yours is 105 bytes. (with the word alias it will be added up to 111 bytes) And here is mine:
alias masshl var %x $$1- | while ($nick(#,$0)) tokenize 32 $1- $v1 | say $remove($2-,$me) $+ : %x
which is 97 bytes. (without the word alias, it's 91 bytes)
Even if you change $chan to #, yous will still be bigger in size.