Well, it was a very tricky situation. When I got to Malaysia the Malay immigration guys were joking "Wow, these Thais are strict", and as they put their stamp in my passport one of them wrote in hand "Deported" above the stamp. Which was firstly not true, as you know you have to be let in to be deported, I was denied entry, but secondly and much more importantly, most airlines who see a "deported" in the passport are not too happy to take you to your destination as they'll bear the cost possibly to bring you back if you're denied entry.
So I had that problem. Then doing some research I saw on youtube some guy who had a tourist visa STILL being denied entry because they said he'd stayed in Thailand too long, even though he had the tourist visa. So it was clear that applying for that was a waste of time.
As I had nightmare visions of having to stay in the rainy gray and depressing hell hole that is KL I decided to browse these forums. And lo and behold I came across a thread where a similar problem was discussed and one forum member in particular had mentioned how he had gotten into Thailand again. I contacted him and he kindly put me in touch with the people who had helped him.
It cost a fortune, I still got proper return flights, not dummy tickets and I thought I was basically clear as I'd printed out the boarding pass using the app of Malaysia Airlines and passport check is automated in KL. However, just before boarding a MAL lady asked if I had a return ticket. Luckily she didn't check the deported stamp in the passport, and I had a return ticket. So I made it onto the flight back to Bangkok.
Then once in Bangkok the people who I had arranged everything with ensured I was cleared through immigration very quickly.