mirror of
https://github.com/ShadowKatStudios/OC-Minitel.git
synced 2024-11-25 19:38:07 +11:00
Compare commits
2 Commits
012b32a4a9
...
ef7e2366b3
Author | SHA1 | Date | |
---|---|---|---|
ef7e2366b3 | |||
b3787b2df8 |
@ -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"}))
|
||||||
|
21
programs.cfg
21
programs.cfg
@ -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/"
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user