mirror of
				https://github.com/KevinMidboe/zoff.git
				synced 2025-10-29 18:00:23 +00:00 
			
		
		
		
	Only setting chat settings if it is sent
This commit is contained in:
		| @@ -180,7 +180,7 @@ function conf_function(params, coll, guid, offline, socket) { | ||||
|             var adminpass = params.adminpass; | ||||
|             var skipping = params.skipping; | ||||
|             var shuffling = params.shuffling; | ||||
|             var toggleChat = params.toggleChat; | ||||
|  | ||||
|             var userpass = Functions.decrypt_string(params.userpass); | ||||
|  | ||||
|             if((!params.userpass_changed && frontpage) || (params.userpass_changed && userpass == "")) { | ||||
| @@ -212,8 +212,10 @@ function conf_function(params, coll, guid, offline, socket) { | ||||
|                         longsongs:longsongs, | ||||
|                         adminpass:hash, | ||||
|                         desc: description, | ||||
|                         toggleChat: toggleChat | ||||
|                     }; | ||||
|                     if(params.hasOwnProperty("toggleChat")) { | ||||
|                         obj.toggleChat = params.toggleChat; | ||||
|                     } | ||||
|                     if(params.userpass_changed) { | ||||
|                         obj["userpass"] = userpass; | ||||
|                     } else if (frontpage) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user