Remove some unnecessary packets

This commit is contained in:
calzoneman 2013-10-19 12:20:55 -05:00
parent ad6b07357f
commit 9be513221e
2 changed files with 3 additions and 18 deletions

View File

@ -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
* www/assets/js/callbacks.js, www/channel.html,
www/assets/css/ytsync.css: Make queuefail errors always show in

View File

@ -855,9 +855,6 @@ Channel.prototype.userJoin = function(user) {
user.socket.emit("setMotd", this.motd);
user.socket.emit("drinkCount", this.drinks);
// Send things that require special permission
this.sendRankStuff(user);
this.logger.log("+++ " + user.ip + " joined");
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) {
if(user.rank >= 3 && this.registered) {
this.server.db.listChannelRanks(this.name, function (err, res) {
@ -1137,7 +1128,6 @@ Channel.prototype.broadcastUserUpdate = function(user) {
meta: user.meta,
profile: user.profile
});
this.sendRankStuff(user);
}
Channel.prototype.broadcastPoll = function() {
@ -2349,14 +2339,6 @@ Channel.prototype.changeLeader = function(name) {
}
if(name == "") {
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);
return;
}