This function is commented out because it looks to me as if it requires grabbing chat text, and the chat interface file has yet to be written.  As such, I can't really port this from SRL-5 in SRL-6's current state.