mirror of
				https://github.com/KevinMidboe/zoff.git
				synced 2025-10-29 18:00:23 +00:00 
			
		
		
		
	Fix for crashing server
This commit is contained in:
		| @@ -395,10 +395,12 @@ function send_list(coll, socket, send, list_send, configs, shuffled) | |||||||
|  |  | ||||||
|         if(configs) |         if(configs) | ||||||
|         { |         { | ||||||
|             if(conf[0].adminpass !== "") conf[0].adminpass = true; |             if(conf.length > 0) { | ||||||
|             if(conf[0].hasOwnProperty("userpass") && conf[0].userpass != "") conf[0].userpass = true; |                 if(conf[0].adminpass !== "") conf[0].adminpass = true; | ||||||
|             else conf[0].userpass = false; |                 if(conf[0].hasOwnProperty("userpass") && conf[0].userpass != "") conf[0].userpass = true; | ||||||
|             io.to(coll).emit("conf", conf); |                 else conf[0].userpass = false; | ||||||
|  |                 io.to(coll).emit("conf", conf); | ||||||
|  |             } | ||||||
|         } |         } | ||||||
|     }); |     }); | ||||||
|     if(socket){ |     if(socket){ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user