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

add a rpc.unregister function to bring it in line with PsychOS

This commit is contained in:
Izaya 2023-11-14 19:48:01 +10:00
parent 2f1144041b
commit bff81dafba

View File

@ -85,4 +85,10 @@ function rpc.register(name,fn)
rpcf[name] = fn
end
function rpc.unregister(name)
rpcf[name] = nil
rpc.allow[name] = nil
rpc.deny[name] = nil
end
return rpc