Fixed reference to nil value.
This commit is contained in:
		@@ -100,9 +100,9 @@ end
 | 
				
			|||||||
local function handleMessage(sender, type, data)
 | 
					local function handleMessage(sender, type, data)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if type == LOG then
 | 
						if type == LOG then
 | 
				
			||||||
		print("[" .. unit .. "]: " .. data["log"] .. textutils.serialise(data["content"]))
 | 
							print("[" .. sender .. "]: " .. data["log"] .. textutils.serialise(data["content"]))
 | 
				
			||||||
	elseif type == REQUEST then
 | 
						elseif type == REQUEST then
 | 
				
			||||||
        handleRequest(unit, data["request"], data["content"])
 | 
					        handleRequest(sender, data["request"], data["content"])
 | 
				
			||||||
	end
 | 
						end
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user