Got the right CoffeeScript syntax for this loop now.

develop
Icedream 2015-10-27 23:18:13 +01:00
parent ab18c3cd8f
commit d61d85e020
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ ts3clientService.on "started", (ts3proc) =>
ts3query.sendtextmessage args.targetmode, invoker.id, "Cleared the playlist."
when "list", "playlist"
message = "Currently these tracks are in the playlist:\n"
for i in [ 1 .. vlc.playlist.items.count ]
for i in [ 0 ... vlc.playlist.items.count ]
if vlc.playlist.currentItem == i
message += "[COLOR=green][B]"
info = vlcMediaInfo[vlc.playlist.items[i].mrl]