Fixes; implement /clear command

This commit is contained in:
calzoneman 2013-05-23 00:03:37 -04:00
parent 4e364f45a6
commit a5c297365c
6 changed files with 23 additions and 15 deletions

View file

@ -1154,10 +1154,9 @@ function hasPermission(key) {
if(key.indexOf("playlist") == 0 && OPENQUEUE) {
var key2 = "o" + key;
var v = CHANPERMS[key2];
if(typeof v != "number") {
return false;
if(typeof v == "number" && RANK >= v) {
return true;
}
return RANK >= v;
}
var v = CHANPERMS[key];
if(typeof v != "number") {