Fix fix unleader bug

This commit is contained in:
calzoneman 2013-02-16 23:00:33 -06:00
parent ad705e8779
commit 7d36f3e87a
1 changed files with 1 additions and 1 deletions

View File

@ -471,7 +471,7 @@ Channel.prototype.demoteUser = function(actor, name) {
// but you never know
Channel.prototype.changeLeader = function(name) {
if(this.leader != null) {
var old = leader;
var old = this.leader;
this.leader = null;
this.broadcastRankUpdate(old);
}