early implementation of CC-1962
This commit is contained in:
parent
f4a86d96c6
commit
e16dd6c486
8 changed files with 78 additions and 20 deletions
|
@ -39,10 +39,14 @@ end
|
|||
# by default
|
||||
def add_skip_command(s)
|
||||
# A command to skip
|
||||
def skip(_)
|
||||
source.skip(s)
|
||||
"Done!"
|
||||
end
|
||||
def skip(_)
|
||||
l = list.hd(server.execute("queue.queue"))
|
||||
l = string.split(separator=" ",l)
|
||||
list.iter(fun (rid) -> ignore(server.execute(queue.ignore #{rid}")), l)
|
||||
|
||||
source.skip(s)
|
||||
"Done!"
|
||||
end
|
||||
# Register the command:
|
||||
server.register(namespace="source",
|
||||
usage="skip",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue