mirror of https://github.com/calzoneman/sync.git
Fix channel rank change
This commit is contained in:
parent
7254512e7d
commit
806cbb3336
|
@ -1982,7 +1982,7 @@ Channel.prototype.trySetRank = function(user, data) {
|
||||||
return;
|
return;
|
||||||
if(rrank >= user.rank)
|
if(rrank >= user.rank)
|
||||||
return;
|
return;
|
||||||
self.server.db.setChannelRank(this.name, data.user,
|
self.server.db.setChannelRank(self.name, data.user,
|
||||||
data.rank, function (err, res) {
|
data.rank, function (err, res) {
|
||||||
|
|
||||||
self.logger.log("*** " + user.name + " set " +
|
self.logger.log("*** " + user.name + " set " +
|
||||||
|
|
Loading…
Reference in New Issue