﻿using System.Collections.Generic;

namespace Cumulus.Configuration.Settings
{
    public class ServerConnectionCountSetting : Setting<int>
    {
        public override int Default
        {
            get { return 20; }
        }

        public override IEnumerable<string> Validate()
        {
            if (Value <= 0) yield return "You must permit at least one server connection if you want to talk to anybody.";
        }
    }
}