Better IRC server reconnection logic