예제 #1
0
        /// <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;
        }
예제 #2
0
        /// <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;
            }
        }