mirror of https://github.com/calzoneman/sync.git
Fix error message
This commit is contained in:
parent
40020684b8
commit
8a10f82089
|
@ -1161,11 +1161,11 @@ Channel.prototype.tryQueue = function(user, data) {
|
||||||
|
|
||||||
var count = this.playlist.count(data.id);
|
var count = this.playlist.count(data.id);
|
||||||
|
|
||||||
if(user.rank < Rank.Moderator && count > 5) {
|
if(user.rank < Rank.Moderator && count >= 5) {
|
||||||
user.socket.emit("queueFail", "That video is already on the " +
|
user.socket.emit("queueFail", "That video is already on the " +
|
||||||
"playlist 10 times.");
|
"playlist 5 times.");
|
||||||
return;
|
return;
|
||||||
} else if(user.rank < Rank.Siteadmin && count > 20) {
|
} else if(user.rank < Rank.Siteadmin && count >= 20) {
|
||||||
user.socket.emit("queueFail", "That video is already on the " +
|
user.socket.emit("queueFail", "That video is already on the " +
|
||||||
"playlist 20 times.");
|
"playlist 20 times.");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue