The structures of halogen-bonded infinite chains involving two diiodoperfluoroalkanes and a bent bis(pyrid-4′-yl)oxadiazole show that the geometry of the pyridyl pendant rings is translated into the angle between the formed halogen bonds.