Skip to content

Commit

Permalink
More bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ylt committed Aug 1, 2015
1 parent cdf39a1 commit 0bea856
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
9 changes: 7 additions & 2 deletions plugins/basicBot/cmds/move.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@ module.exports = function (basicBot) {
if (message.from.rank >= this.core.ranks.BOUNCER) {
var user = message.getUser(0);
var target = message.getUser(1);
var position = target?target.getWaitlistPosition():parseInt(message.args[1]);
var waitlist = this.plug.room.getWaitlist();
var position;
if (target !== undefined) {
position = target.getWaitlistPosition();
}
else {
position = parseInt(message.args[1]);
}

if (!user) {
message.sendReply("Error, couldn't find user");
Expand Down
6 changes: 3 additions & 3 deletions plugins/mediaskip/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ mediaskip.events.plug_advance = function (advance) {
}
}
if (missing.length > 0) {
mediaskip.plug.sendChat("/me [Skipped] Video unavailable in: " + missing.join(" "));
mediaskip.plug.sendChat("/me http://polsy.org.uk/stuff/ytrestrict.cgi?ytid=" + advance.media.cid);
mediaskip.plug.moderateForceSkip();
mediaskip.plug.room.sendChat("/me [Skipped] Video unavailable in: " + missing.join(" "));
mediaskip.plug.room.sendChat("/me http://polsy.org.uk/stuff/ytrestrict.cgi?ytid=" + advance.media.cid);
mediaskip.plugged.skipDJ(mediaskip.plugged.getCurrentDJ().id);
}

}
Expand Down

0 comments on commit 0bea856

Please sign in to comment.