Big Brother (bb4.com) utilizes a pager script which can be user-defined. The script itself can be found at http://www.deadcat.net/3/aim. The script is essentially stand-alone and was based on the perldocs for Net::AIM and several AIMbots to see what was involved (it's not exactly the prettiest code I admit). It already has to initialize a connection but I'm unsure how to go about having it utilize an existing connection since the script is essentially run from scratch each time it's called.