Added fixes for player not starting on youtubevideos that has already been played by the client

Fix for userpass not being set correctly
Fix for emit function not being used everywhere it needs to be used
This commit is contained in:
Kasper Rynning-Tønnesen
2018-03-01 13:10:51 +01:00
parent 97e06e3726
commit a6083d3402
3 changed files with 25 additions and 11 deletions

View File

@@ -143,6 +143,7 @@ var Admin = {
},
pw: function(msg) {
if(msg == false) return;
w_p = false;
if(adminpass == undefined || adminpass == "") {
adminpass = Crypt.get_pass(chan.toLowerCase());
@@ -354,8 +355,9 @@ var Admin = {
userpass: Crypt.crypt_pass(pass_send),
userpass_changed: userpass_changed
};
Crypt.set_userpass(chan.toLowerCase(), CryptoJS.SHA256(userpass).toString());
if(userpass_changed){
Crypt.set_userpass(chan.toLowerCase(), CryptoJS.SHA256(userpass).toString());
}
emit("conf", configs);
},