From d1c64180a19a1274bcec1c06446cb7627257811e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Thu, 19 May 2016 13:07:02 +0200 Subject: [PATCH] Logging user out if listhaspass is sent --- static/js/admin.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/js/admin.js b/static/js/admin.js index 4060a9da..833dfbc6 100755 --- a/static/js/admin.js +++ b/static/js/admin.js @@ -34,6 +34,9 @@ var Admin = { break; case "listhaspass": msg=Helper.rnd(["I'm sorry, but you have to be an admin to do that!", "Only admins can do that", "You're not allowed to do that, try logging in!", "I can't let you do that", "Please log in to do that"]) + Crypt.remove_pass(chan.toLowerCase()); + Admin.display_logged_out(); + w_p = true; break; case "noskip": msg=Helper.rnd(["Only Admins can skip songs, peasant!", "You have to log in to skip songs on this channel", "Try clicking the settings icon and logging in before you skip"])