mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
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:
@@ -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);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user