Only reason I put him in the bucket is I thought he was dead, no sign of life for about 40 mins on him. It took about 3 1/2 hours of pumping water through his gills to get him breathing on his own again, I thought it was worth a shot since he wasn't moving at all, and it seems to have paid off. Ordinarily when I add new fish I don't go near the tank for 2 days, but I have covered it all with news paper and just left a peep hole to keep an eye on him. He seems to have had a try at swimming since my last post, ended up on his side but at least he's trying now. The lack of oxygen when he stopped breathing for so long could have lead to brain damage though, as well as the hard smacks on the glass.
I will leave it black out till tomorrow but then the other fish will be getting hungry, I already had to feed the corydora because they found him on the bottom and the slime coating was too hard to resist.