From 5a7b6aee85755519f58d0d9b685058e0edb32f9a Mon Sep 17 00:00:00 2001 From: calzoneman Date: Thu, 18 Jul 2013 10:33:10 -0400 Subject: [PATCH] Minor fix --- user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user.js b/user.js index 3b319022..2480de37 100644 --- a/user.js +++ b/user.js @@ -418,7 +418,7 @@ User.prototype.initCallbacks = function() { this.socket.on("savePlaylist", function(data) { if(this.rank < 1) { - socket.emit("savePlaylist", { + this.socket.emit("savePlaylist", { success: false, error: "You must be logged in to manage playlists" }); @@ -426,7 +426,7 @@ User.prototype.initCallbacks = function() { } if(this.channel == null) { - socket.emit("savePlaylist", { + this.socket.emit("savePlaylist", { success: false, error: "Not in a channel" });