Gunman warned of plans in chatroom