mirror of https://github.com/calzoneman/sync.git
Fix #866
This commit is contained in:
parent
529a3561ca
commit
9e5fcf4904
|
@ -2,7 +2,7 @@
|
||||||
"author": "Calvin Montgomery",
|
"author": "Calvin Montgomery",
|
||||||
"name": "CyTube",
|
"name": "CyTube",
|
||||||
"description": "Online media synchronizer and chat",
|
"description": "Online media synchronizer and chat",
|
||||||
"version": "3.70.1",
|
"version": "3.70.2",
|
||||||
"repository": {
|
"repository": {
|
||||||
"url": "http://github.com/calzoneman/sync"
|
"url": "http://github.com/calzoneman/sync"
|
||||||
},
|
},
|
||||||
|
|
|
@ -444,6 +444,13 @@ Channel.prototype.acceptUser = function (user) {
|
||||||
});
|
});
|
||||||
|
|
||||||
this.sendUserlist([user]);
|
this.sendUserlist([user]);
|
||||||
|
|
||||||
|
// Managing this from here is not great, but due to the sequencing involved
|
||||||
|
// and the limitations of the existing design, it'll have to do.
|
||||||
|
if (this.modules.playlist.leader !== null) {
|
||||||
|
user.socket.emit("setLeader", this.modules.playlist.leader.getName());
|
||||||
|
}
|
||||||
|
|
||||||
this.broadcastUsercount();
|
this.broadcastUsercount();
|
||||||
if (!this.is(Flags.C_REGISTERED)) {
|
if (!this.is(Flags.C_REGISTERED)) {
|
||||||
user.socket.emit("channelNotRegistered");
|
user.socket.emit("channelNotRegistered");
|
||||||
|
|
Loading…
Reference in New Issue