/// <summary> /// Applies the setting. /// </summary> /// <param name="setting">The setting.</param> public void ApplySetting(BadNicknameSettings setting) { base.ApplySetting(setting); this.BadNicknames = setting.BadNicknames ?? new string[0]; if (!string.IsNullOrEmpty(setting.KickMessage)) this.KickMessage = setting.KickMessage; }
/// <summary> /// Applies the setting. /// </summary> /// <param name="setting">The setting.</param> public void ApplySetting(BadNicknameSettings setting) { base.ApplySetting(setting); this.BadNicknames = setting.BadNicknames ?? new string[0]; if (!string.IsNullOrEmpty(setting.KickMessage)) { this.KickMessage = setting.KickMessage; } }