Townhouses of three stories or less are regulated under the IRC, not the IBC, unless your jurisdiction modified the reference in Chapter 1 of the IBC.
I always forget that other states handle this differently. In CA there was no Residential Code until 2010, so our code has this statement:
1.1.7.3.1 Detached one- and two-family dwellings.
Detached one- and two-family dwellings, lodging
houses, live/work units, townhouses not more than
three stories above grade plane in height with a separate
means of egress, and their accessory structures
may be designed and constructed in accordance with
this code, or the California Building Code, but not
both, unless the proposed structure(s) or element(s)
exceed the design limitations established in this code,
and the code user is specifically directed by this code
to use the California Building Code.
Most designers, drafters, architects, engineers, etc... in our area don't even know there is a residential code. We see stuff all the time submitted that could be (should be) designed to the residential code, but they call out the building code. We review as submitted.