With the fix I also added a utility function to open a erc log file/buffer from a erc chat/channel buffer.