summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--digilines.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/digilines.lua b/digilines.lua
index 413a0bc..1cdfd3f 100644
--- a/digilines.lua
+++ b/digilines.lua
@@ -143,6 +143,17 @@ minetest.register_node("celevator:digilines_io",{
channel = "swingdncall",
msg = msg.floor,
})
+ elseif msg.command == "security" and type(msg.floor) == "number" then
+ if msg.mode == "deny" or msg.mode == "auth" or not msg.mode then
+ celevator.controller.run(carinfo.controllerpos,{
+ type = "remotemsg",
+ channel = "security",
+ msg = {
+ floor = msg.floor,
+ mode = msg.mode,
+ },
+ })
+ end
end
end
end,