Merge channel ranks tables

This commit is contained in:
Calvin Montgomery 2014-06-23 21:40:40 -07:00
parent 0abaaba690
commit 4afd69b2fb
4 changed files with 89 additions and 64 deletions

View file

@ -310,7 +310,7 @@ KickBanModule.prototype.banIP = function (actor, ip, name, reason, cb) {
return error("You do not have ban permissions on this channel");
}
Q.nfcall(Account.rankForIP, ip).then(function (rank) {
Q.nfcall(Account.rankForIP, ip, { channel: chan.name }).then(function (rank) {
if (rank >= actor.account.effectiveRank) {
throw "You don't have permission to ban IP " + masked;
}