FiltaQuilla is an add-on that enables the user to properly and precisely configure notifications, based on built-in filters or enhanced filters. Maybe one could try to extend its functionality to filter/notify chat messages. I don't have a full answer here, but it might be a good start. I would not be surprised if the developer of this add-on would make something for chat.
Step 2
Feel free to post other examples Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!