give someone a taste of their own medicine
to do the same bad thing to someone that they have done to you
I'm glad somebody decided to give them a taste of their own medicine.
The phrase "taste his own medicine" is an idiom that means to experience the consequences of one's own actions or to receive the same treatment that one has given to others. In the context of Swami, it could mean that: - Swami had been giving others a hard time or treating them poorly.