Hidden gems.
With all the talk about xchat notifications, it’s worth noting that the xchat-gnome package already comes with this functionality. Simply use gconf-editor (or hand) to edit the GConf key apps/xchat/plugins/notification/level key. I set mine to the value 3, which means any normally hilighted messages will generate a notification.