mirror of
https://github.com/calzoneman/sync.git
synced 2024-09-13 04:32:09 +00:00
Fix channel registration
This commit is contained in:
parent
a3138abd38
commit
0c0fc843d6
@ -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", {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user