Handling the fact that text editors love a trailing \n on things.
Added IRC server pings.
Avoid DoSing the client with pings's