Blue-Kote is supposed to be an antifungal/anti-bacteria spray that also discourages pecking because it tastes bad (and the color is dark to hide wounds that attract pecking). Just beware of the color staining things, because it stains everything in sight. In fact, wear rubber gloves when you spray it, and have paper towels to absorb the excess so you don't find purple streaks on the walls from it rubbing off. It doesn't seem to dry very quickly, but I've had noticeable improvement when I use it.
There is also a newer product called Vetericyn that a lot of people seem to like for the same purpose. I think it is harder to find and costs twice as much though.