Applied samjam's CtdlMessageInRoom() patch but wrapped it around