/// <summary> /// Applies the setting. /// </summary> /// <param name="setting">The setting.</param> public void ApplySetting(ModeratorControlSettings setting) { base.ApplySetting(setting); if (setting.Limit > 0) this.Limit = setting.Limit; if (!string.IsNullOrEmpty(setting.TextMessage)) this.TextMessage = setting.TextMessage; if (!string.IsNullOrEmpty(setting.MessagePerModerator)) this.MessagePerModerator = setting.MessagePerModerator; }
/// <summary> /// Applies the setting. /// </summary> /// <param name="setting">The setting.</param> public void ApplySetting(ModeratorControlSettings setting) { base.ApplySetting(setting); if (setting.Limit > 0) { this.Limit = setting.Limit; } if (!string.IsNullOrEmpty(setting.TextMessage)) { this.TextMessage = setting.TextMessage; } if (!string.IsNullOrEmpty(setting.MessagePerModerator)) { this.MessagePerModerator = setting.MessagePerModerator; } }