WebSocketServer.CardServer.RegisterAdmin C# (CSharp) Method

RegisterAdmin() public method

Attempts to register the specified client as an admin using the specified password. This checks against the server password, and will return true if the password was correct (and the client was elevated to an admin), otherwise it returns false.
public RegisterAdmin ( Client c, string pass ) : bool
c Client The client requesting administrative priveleges.
pass string The password that the client provided, to be checked against the actual password for the server.
return bool
        public bool RegisterAdmin(Client c, string pass)
        {
            if (pass == AdminPassword)
            {
                Admins.Add(c);
                return true;
            }
            else
            {
                return false;
            }
        }