relay: fix ping and error parsing

* I can't believe I missed this...
* fixes tilal6991/HoloIRC#76