From 9be513221e9a60fff33fb72734f9388175f22aa5 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Sat, 19 Oct 2013 12:20:55 -0500 Subject: [PATCH] Remove some unnecessary packets --- changelog | 3 +++ lib/channel.js | 18 ------------------ 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/changelog b/changelog index 500c75ab..b1925949 100644 --- a/changelog +++ b/changelog @@ -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 diff --git a/lib/channel.js b/lib/channel.js index e6a08a59..7078c928 100644 --- a/lib/channel.js +++ b/lib/channel.js @@ -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; }