I am looking for a simple script that could either log into a file or into a new window if certain words is said on channel. It should log 1 line before and 3 lines after the word was said.

Kinda like highlight. Is there a script that does this?