mirror of
https://github.com/ShadowKatStudios/OC-Minitel.git
synced 2024-11-23 10:38:05 +11:00
add a rpc.unregister function to bring it in line with PsychOS
This commit is contained in:
parent
2f1144041b
commit
bff81dafba
@ -85,4 +85,10 @@ function rpc.register(name,fn)
|
|||||||
rpcf[name] = fn
|
rpcf[name] = fn
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function rpc.unregister(name)
|
||||||
|
rpcf[name] = nil
|
||||||
|
rpc.allow[name] = nil
|
||||||
|
rpc.deny[name] = nil
|
||||||
|
end
|
||||||
|
|
||||||
return rpc
|
return rpc
|
||||||
|
Loading…
Reference in New Issue
Block a user