1
0
mirror of https://github.com/ShadowKatStudios/OC-Minitel.git synced 2024-11-27 04:18: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 processes = {}
local hooks = {} local hooks = {}
local computer = {["uptime"]=os.uptime,["address"]=os.address} -- wrap computer so the OpenOS code more or less works 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 = {} local event = {}
function event.timer() function event.timer()
end end
@ -45,6 +50,8 @@ local event = require "event"
local component = require "component" local component = require "component"
local computer = require "computer" local computer = require "computer"
]]-- ]]--
local hostname = computer.address():sub(1,8) local hostname = computer.address():sub(1,8)
local listener = false local listener = false
local dbug = true local dbug = true