thanks
for anyone else interested a good topic is here:
https://forums.mirc.com/ubbthreads.php?ubb=showflat&Number=209719&page=0&fpart=1I tried:
alias htmlfree {
var %x, %i = $regsub($1-,/(^[^<]*>|<[^>]*>|<[^>]*$)/g,$null,%x), %x = $replace(%x, ,$chr(32))
; return %x
/msg %x
}
which when used with:
/play -a htmlfree html.txt
works fine
but it seems on some lines it has nothing to message:
* /msg: insufficient parameters (line 137, test.mrc)
(I think the regex has parsed it to blank as the line only has tags in it)
How do I stop it doing /msg when it has nothing to msg?
on *:TEXT:*:#firefox: {
tokenize 32 $strip($1-)
if ($1 == !html) { /play -a htmlfree $chan html.txt }
}