Triple Antibiotic Solution
I didn't see the original situation here, but if his eye/s had pus or matter, then a warm cloth on them is the right thing. It is better not to rub, rather just to hold it on the eye until the cloth cools, then rinse the cloth in warm water and re-apply until you can gently wipe all the goo away. Using a smooth cotton, rather than terry-style cloth is gentler as well.
I have a few rescue chins with eyes that act up, this is what we do for them on occasion- our vet also gave us "triple antibiotic solution," drops for their eyes, that I put in after the eye is cleaned out.