I had problems with my socket bot I created on Undernet because of this reason, so I just created a script that would reply the exact PONG command it gave... *shrug*