Esempio n. 1
0
        private static bool AddIgnore(string commands, Variable[] vars, bool quiet, bool force)
        {
            if (vars.Length != 1)
            {
                throw new RunTimeError("Usage: ignore (serial)");
            }

            var serial = vars[0].AsSerial();

            Interpreter.AddIgnore(serial);

            CommandHelper.SendMessage($"Added {serial} to ignore list", quiet);

            return(true);
        }