From db186b4457591ed9503b2b4031732e1898f7a5ce Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Mon, 17 Sep 2018 22:28:50 -0400 Subject: [PATCH] Add security level support to the V4 DMAPI --- src/DMAPI/tgs/v4/api.dm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/DMAPI/tgs/v4/api.dm b/src/DMAPI/tgs/v4/api.dm index bf1f506f0a..b5bc692f11 100644 --- a/src/DMAPI/tgs/v4/api.dm +++ b/src/DMAPI/tgs/v4/api.dm @@ -32,6 +32,7 @@ var/chat_commands_json_path var/server_commands_json_path var/reboot_mode = TGS_REBOOT_MODE_NORMAL + var/security_level var/list/intercepted_message_queue @@ -63,7 +64,6 @@ return access_identifier = cached_json["accessIdentifier"] - instance_name = text2num(cached_json["instanceName"]) server_commands_json_path = cached_json["serverCommandsJson"] if(cached_json["apiValidateOnly"]) @@ -71,6 +71,7 @@ Export(TGS4_COMM_VALIDATE, list(TGS4_PARAMETER_DATA = "[minimum_required_security_level]")) del(world) + security_level = cached_json["securityLevel"] chat_channels_json_path = cached_json["chatChannelsJson"] chat_commands_json_path = cached_json["chatCommandsJson"] src.event_handler = event_handler @@ -295,6 +296,9 @@ channel.custom_tag = channel_json["tag"] return channel +/datum/tgs_api/v4/SecurityLevel() + return security_level + /* The MIT License