I have written precicely one irssi script: jonsubst.pl.txt.

It is an outbound filter that looks for text strings and replaces them with other text strings.

I use it to replace certain ASCII sequences with unicode symbols.