As a note, this is already solved. I redid part of the script for him on IRC that handled private messages.