mirror of https://github.com/calzoneman/sync.git
Remove some unnecessary packets
This commit is contained in:
parent
ad6b07357f
commit
9be513221e
|
@ -1,3 +1,6 @@
|
||||||
|
Sat Oct 19 12:20 2013 CDT
|
||||||
|
* lib/channel.js: Remove some unnecessary packets
|
||||||
|
|
||||||
Wed Oct 16 23:29 2013 CDT
|
Wed Oct 16 23:29 2013 CDT
|
||||||
* www/assets/js/callbacks.js, www/channel.html,
|
* www/assets/js/callbacks.js, www/channel.html,
|
||||||
www/assets/css/ytsync.css: Make queuefail errors always show in
|
www/assets/css/ytsync.css: Make queuefail errors always show in
|
||||||
|
|
|
@ -855,9 +855,6 @@ Channel.prototype.userJoin = function(user) {
|
||||||
user.socket.emit("setMotd", this.motd);
|
user.socket.emit("setMotd", this.motd);
|
||||||
user.socket.emit("drinkCount", this.drinks);
|
user.socket.emit("drinkCount", this.drinks);
|
||||||
|
|
||||||
// Send things that require special permission
|
|
||||||
this.sendRankStuff(user);
|
|
||||||
|
|
||||||
this.logger.log("+++ " + user.ip + " joined");
|
this.logger.log("+++ " + user.ip + " joined");
|
||||||
Logger.syslog.log(user.ip + " joined channel " + this.name);
|
Logger.syslog.log(user.ip + " joined channel " + this.name);
|
||||||
}
|
}
|
||||||
|
@ -969,12 +966,6 @@ Channel.prototype.sendChatFilters = function(user) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Channel.prototype.sendRankStuff = function(user) {
|
|
||||||
this.sendBanlist(user);
|
|
||||||
this.sendChatFilters(user);
|
|
||||||
this.sendChannelRanks(user);
|
|
||||||
}
|
|
||||||
|
|
||||||
Channel.prototype.sendChannelRanks = function(user) {
|
Channel.prototype.sendChannelRanks = function(user) {
|
||||||
if(user.rank >= 3 && this.registered) {
|
if(user.rank >= 3 && this.registered) {
|
||||||
this.server.db.listChannelRanks(this.name, function (err, res) {
|
this.server.db.listChannelRanks(this.name, function (err, res) {
|
||||||
|
@ -1137,7 +1128,6 @@ Channel.prototype.broadcastUserUpdate = function(user) {
|
||||||
meta: user.meta,
|
meta: user.meta,
|
||||||
profile: user.profile
|
profile: user.profile
|
||||||
});
|
});
|
||||||
this.sendRankStuff(user);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Channel.prototype.broadcastPoll = function() {
|
Channel.prototype.broadcastPoll = function() {
|
||||||
|
@ -2349,14 +2339,6 @@ Channel.prototype.changeLeader = function(name) {
|
||||||
}
|
}
|
||||||
if(name == "") {
|
if(name == "") {
|
||||||
this.logger.log("*** Resuming autolead");
|
this.logger.log("*** Resuming autolead");
|
||||||
/*
|
|
||||||
if(this.playlist.current != null && !isLive(this.playlist.current.media.type)) {
|
|
||||||
this.playlist.current.media.paused = false;
|
|
||||||
this.time = new Date().getTime();
|
|
||||||
this.i = 0;
|
|
||||||
mediaUpdate(this, this.playlist.current.media.id);
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
this.playlist.lead(true);
|
this.playlist.lead(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue