It just occurred to me that this is a simplified version of CTCP. There are several escape characters not handled here- you might just want to make a comment.