Exemplo n.º 1
0
        /// <summary>
        /// Attempts to process the given command.
        /// </summary>
        /// <param name="command"></param>
        /// <param name="player"></param>
        /// <returns>True if the command was applicable to this class; otherwise, false.</returns>
        public virtual bool ProcessCommand( string command, IrcPlayer player )
        {
            if (!Command.IsMatch(command))
                return false;

            if (player.UserLevel < UserLevel)
            {
                player.Kick( @"You lack the necessary access to execute that command." );
                return false;
            }

            return true;
        }