mirror of https://github.com/calzoneman/sync.git
Fix channel registration
This commit is contained in:
parent
a3138abd38
commit
0c0fc843d6
|
@ -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", {
|
||||
|
|
Loading…
Reference in New Issue