mirror of
https://github.com/kepler155c/opus
synced 2025-01-16 18:32:52 +00:00
sanitize network info a bit
This commit is contained in:
parent
3beae64ad8
commit
62a3bc1360
@ -124,6 +124,10 @@ Event.on('modem_message', function(_, _, sport, id, info, distance)
|
||||
network[id].distance = distance
|
||||
network[id].timestamp = os.clock()
|
||||
|
||||
if not network[id].label then
|
||||
network[id].label = 'unknown'
|
||||
end
|
||||
|
||||
if not network[id].active then
|
||||
network[id].active = true
|
||||
os.queueEvent('network_attach', network[id])
|
||||
|
Loading…
Reference in New Issue
Block a user