IR Code on Attiny gives error

Changing just what you suggested gives me this error when running the code again:

Those two items are examples. They are not a comprehensive listing. You will have to change all of the register and bit references from timer 2 to timer 0.