I just wanna request an input script that looks like this.

nick on #

abcd
samplenick
anothernick

if my msg to chan contain $nick on channel it will change like this

<frog> hi ~abcd[x] how are you?
<frog> frog slaps ~samplenick[x] with large thumb
<frog> -anothernick- this is notice for ~anothernick[x]

one more .. Is it possible to use in in query too? thanks
thanks ..