CardsAgainstIRC3.Game.States.Base.UserInfoCommand C# (CSharp) Method

UserInfoCommand() private method

private UserInfoCommand ( CommandContext context, IEnumerable arguments ) : void
context CommandContext
arguments IEnumerable
return void
        public void UserInfoCommand(CommandContext context, IEnumerable<string> arguments)
        {
            if (arguments.Count() != 1)
            {
                SendInContext(context, "Usage: !user.info nick");
                return;
            }

            var user = Manager.Resolve(context.Nick);
            if (user == null)
            {
                SendInContext(context, "That nick doesn't exist!");
                return;
            }

            SendInContext(context, "Nick: '{0}', Can vote: {1}, Can choose cards: {2}", user.Nick, user.CanVote, user.CanChooseCards);
        }