mirror of
				https://github.com/minetest-mods/digilines.git
				synced 2025-11-04 16:15:29 +01:00 
			
		
		
		
	Disallow LCD messages that aren't strings or numbers (#89)
This commit is contained in:
		
							
								
								
									
										2
									
								
								lcd.lua
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								lcd.lua
									
									
									
									
									
								
							@@ -259,6 +259,8 @@ local on_digiline_receive = function(pos, _, channel, msg)
 | 
			
		||||
	local setchan = meta:get_string("channel")
 | 
			
		||||
	if setchan ~= channel then return end
 | 
			
		||||
 | 
			
		||||
	if type(msg) ~= "string" and type(msg) ~= "number" then return end
 | 
			
		||||
 | 
			
		||||
	meta:set_string("text", msg)
 | 
			
		||||
	meta:set_string("infotext", msg)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user