The Rhode Island building code probably isn’t available online, but it is based on the National Building Codes (which I am not familiar with) according to buildingteam.com.
From what I have heard in the news, they did have sufficient egress provided. What was almost definitely not up to code was the foam eggcrate material all over the walls for noise control purposes. I don’t know the specific material properties, but I can all but guarantee it did not have the low flame spread & smoke generated ratings for use as a wall covering. I don’t know when the last inspection by the fire marshall was, but if that stuff was on the walls when he was through, he should be sacked.
Building codes usually only apply to new construction and it is pretty rare for old buildings to be required to conform to new codes. If the building did not udergo a change of use or major remodeling, there would be no requirement for adding sprinklers (at least in the jurisdictions in which I have practiced).
Properly functioning sprinklers may or may not have prevented the eventual loss of the building, especially since the walls were covered with a fast burning fuel source (the soundproofing eggcrate foam). Sprinklers definitely would have slowed the spread of the fire which would have allowed more people to escape. Sprinklers discharging also would have convinced people that this wasn’t just part of the show and that they should GET THE FUCK OUT OF THE BUILDING NOW.
ScoobyTX, PE (not licensed in Rhode Island)