SHOW:
|
|
- or go back to the newest paste.
| 1 | var historylist=Models.history.data; | |
| 2 | var historylength=historylist.length; | |
| 3 | ||
| 4 | API.addEventListener(API.DJ_UPDATE, repeatcheck); | |
| 5 | ||
| 6 | function repeatcheck(user) {
| |
| 7 | - | var historylist=Models.history.data(); |
| 7 | + | |
| 8 | var historylength=historylist.length; | |
| 9 | var currentID=Models.room.data.media.cid; | |
| 10 | ||
| 11 | for(var j=0; j<historylength;j++) {
| |
| 12 | ||
| 13 | if (historylist[j].media.cid == currentID) {
| |
| 14 | API.sendChat("repeat detected");
| |
| 15 | } | |
| 16 | ||
| 17 | } | |
| 18 | ||
| 19 | } |