Fix channel registration

This commit is contained in:
calzoneman 2013-05-27 21:16:18 -04:00
parent a3138abd38
commit 0c0fc843d6
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ Channel.prototype.tryRegister = function(user) {
}); });
} }
else { else {
if(Database.registerChannel(this)) { if(Database.registerChannel(this.name)) {
this.registered = true; this.registered = true;
this.saveRank(user); this.saveRank(user);
user.socket.emit("registerChannel", { user.socket.emit("registerChannel", {