diff --git a/channel.js b/channel.js index 00bb6adf..e12c8a16 100644 --- a/channel.js +++ b/channel.js @@ -266,7 +266,7 @@ Channel.prototype.tryRegister = function(user) { }); } else { - if(Database.registerChannel(this)) { + if(Database.registerChannel(this.name)) { this.registered = true; this.saveRank(user); user.socket.emit("registerChannel", {