I'm no expert but I would seriously doubt that a city, town or AHJ could force a homeowner to bring a house up to current codes just because it was vacant for over 6 months. That could run into obscene dollars if you consider all the systems that could need updating.