Recognize PING and ERROR messages from IRC

This allows us to keep the bot connected to IRC.