static void LogDisconnectWarning([NotNull] Exception ex) {
if (ex == null) throw new ArgumentNullException("ex");
Logger.Log(LogType.Warning,
"IRC: Disconnected ({0}: {1}). Will retry in {2} seconds.",
ex.GetType().Name,
ex.Message,
ReconnectDelay.TotalSeconds);
}