Fixed IRC crashing Minetest

If an IRC client disconnected without a parting message, it crashed the Minetest server. This update fixes that.