Chimney cap attached to flue