1
0
mirror of https://github.com/ShadowKatStudios/OC-Minitel.git synced 2024-11-26 03:48:06 +11:00

Compare commits

..

2 Commits

Author SHA1 Message Date
ef7e2366b3 add rica and ricad to oppm listing 2023-11-10 17:53:13 +10:00
b3787b2df8 don't execute the function twice. oops. 2023-11-10 17:37:20 +10:00
2 changed files with 21 additions and 1 deletions

View File

@ -66,7 +66,6 @@ function rpc.register(name,fn)
if port == rpc.port then if port == rpc.port then
local rpcrq = serial.unserialize(data) local rpcrq = serial.unserialize(data)
if rpcf[rpcrq[1]] and isPermitted(from,rpcrq[1]) then if rpcf[rpcrq[1]] and isPermitted(from,rpcrq[1]) then
local rt = {pcall(rpcf[rpcrq[1]],table.unpack(rpcrq))}
minitel.send(from,port,serial.serialize({rpcrq[2],pcall(rpcf[rpcrq[1]],table.unpack(rpcrq,3))})) minitel.send(from,port,serial.serialize({rpcrq[2],pcall(rpcf[rpcrq[1]],table.unpack(rpcrq,3))}))
elseif type(rpcrq[2]) == "string" then elseif type(rpcrq[2]) == "string" then
minitel.send(from,port,serial.serialize({rpcrq[2],false,"function unavailable"})) minitel.send(from,port,serial.serialize({rpcrq[2],false,"function unavailable"}))

View File

@ -296,4 +296,25 @@
authors = "Izaya", authors = "Izaya",
repo = "tree/master/" repo = "tree/master/"
}, },
["rica"] = {
files = {},
dependencies = {
["https://git.shadowkat.net/izaya/PsychOSPackages/raw/branch/master/rica/service/rica.lua"] = "//etc/rc.d",
["vcomponent"] = "",
},
name = "rica",
description = "Remote Internet Card Access (rica) client",
authors = "Izaya",
repo = "tree/master/"
},
["ricad"] = {
files = {},
dependencies = {
["https://git.shadowkat.net/izaya/PsychOSPackages/raw/branch/master/ricad/service/ricad.lua"] = "//etc/rc.d",
},
name = "ricad",
description = "Remote Internet Card Access (rica) server",
authors = "Izaya",
repo = "tree/master/"
},
} }