From 0c0fc843d6cc6b687c56f6bb83c33bb78f33e155 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Mon, 27 May 2013 21:16:18 -0400 Subject: [PATCH] Fix channel registration --- channel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", {