mirror of
https://github.com/KevinMidboe/zoff.git
synced 2026-02-10 03:19:38 +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