diff --git a/package.json b/package.json index 77e3b0d3..559df676 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "Calvin Montgomery", "name": "CyTube", "description": "Online media synchronizer and chat", - "version": "3.76.0", + "version": "3.76.1", "repository": { "url": "http://github.com/calzoneman/sync" }, diff --git a/www/js/util.js b/www/js/util.js index 52e73dbc..76a5be17 100644 --- a/www/js/util.js +++ b/www/js/util.js @@ -214,26 +214,28 @@ function addUserDropdown(entry) { var btngroup = $("
").addClass("btn-group-vertical").appendTo(menu); /* ignore button */ - var ignore = $("").addClass("btn btn-xs btn-default") - .appendTo(btngroup) - .click(function () { - if(IGNORED.indexOf(name) == -1) { - ignore.text("Unignore User"); - IGNORED.push(name); - entry.addClass("userlist-ignored"); - } else { - ignore.text("Ignore User"); - IGNORED.splice(IGNORED.indexOf(name), 1); - entry.removeClass("userlist-ignored"); - } - setOpt("ignorelist", IGNORED); - }); - if(IGNORED.indexOf(name) == -1) { - entry.removeClass("userlist-ignored"); - ignore.text("Ignore User"); - } else { - entry.addClass("userlist-ignored"); - ignore.text("Unignore User"); + if (name !== CLIENT.name) { + var ignore = $("").addClass("btn btn-xs btn-default") + .appendTo(btngroup) + .click(function () { + if(IGNORED.indexOf(name) == -1) { + ignore.text("Unignore User"); + IGNORED.push(name); + entry.addClass("userlist-ignored"); + } else { + ignore.text("Ignore User"); + IGNORED.splice(IGNORED.indexOf(name), 1); + entry.removeClass("userlist-ignored"); + } + setOpt("ignorelist", IGNORED); + }); + if(IGNORED.indexOf(name) == -1) { + entry.removeClass("userlist-ignored"); + ignore.text("Ignore User"); + } else { + entry.addClass("userlist-ignored"); + ignore.text("Unignore User"); + } } /* pm button */