1
0
mirror of https://github.com/ShadowKatStudios/OC-Minitel.git synced 2024-11-23 02:28:05 +11:00

fix computer.address on R1

This commit is contained in:
Izaya 2018-04-25 03:20:57 +10:00
parent 6a5b711172
commit ebe82bd4bf

View File

@ -6,6 +6,11 @@ neo.requireAccess("s.h.modem_message","pulling packets")
local processes = {}
local hooks = {}
local computer = {["uptime"]=os.uptime,["address"]=os.address} -- wrap computer so the OpenOS code more or less works
if not computer.address then -- R1 compatibility
computer.address = neo.requireAccess("k.computer","get address").address
end
local event = {}
function event.timer()
end
@ -45,6 +50,8 @@ local event = require "event"
local component = require "component"
local computer = require "computer"
]]--
local hostname = computer.address():sub(1,8)
local listener = false
local dbug = true