From dceed5352d285850d0667921b90706560fe5537a Mon Sep 17 00:00:00 2001 From: "novasector-ci[bot]" <181600888+novasector-ci[bot]@users.noreply.github.com> Date: Fri, 1 Nov 2024 01:53:30 +0000 Subject: [PATCH] Update TGS DMAPI --- code/modules/tgs/core/datum.dm | 2 -- code/modules/tgs/v3210/api.dm | 2 +- code/modules/tgs/v3210/commands.dm | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/code/modules/tgs/core/datum.dm b/code/modules/tgs/core/datum.dm index e6c000ff8e2c..3ca53e9bf7c6 100644 --- a/code/modules/tgs/core/datum.dm +++ b/code/modules/tgs/core/datum.dm @@ -11,8 +11,6 @@ TGS_DEFINE_AND_SET_GLOBAL(tgs, null) src.event_handler = event_handler src.version = version -// chumbis - /datum/tgs_api/proc/TerminateWorld() while(TRUE) TGS_DEBUG_LOG("About to terminate world. Tick: [world.time], sleep_offline: [world.sleep_offline]") diff --git a/code/modules/tgs/v3210/api.dm b/code/modules/tgs/v3210/api.dm index 5c6ec250088c..666201a32256 100644 --- a/code/modules/tgs/v3210/api.dm +++ b/code/modules/tgs/v3210/api.dm @@ -143,7 +143,7 @@ if(SERVICE_CMD_LIST_CUSTOM) return json_encode(ListServiceCustomCommands(FALSE)) else - var/custom_command_result = HandleServiceCustomCommand(LOWER_TEXT(command), params[SERVICE_CMD_PARAM_SENDER], params[SERVICE_CMD_PARAM_CUSTOM]) + var/custom_command_result = HandleServiceCustomCommand(lowertext(command), params[SERVICE_CMD_PARAM_SENDER], params[SERVICE_CMD_PARAM_CUSTOM]) if(custom_command_result) return istext(custom_command_result) ? custom_command_result : SERVICE_RETURN_SUCCESS return "Unknown command: [command]" diff --git a/code/modules/tgs/v3210/commands.dm b/code/modules/tgs/v3210/commands.dm index 412dd2113a2d..e65c816320dc 100644 --- a/code/modules/tgs/v3210/commands.dm +++ b/code/modules/tgs/v3210/commands.dm @@ -37,7 +37,7 @@ cached_custom_tgs_chat_commands = list() for(var/I in typesof(/datum/tgs_chat_command) - /datum/tgs_chat_command) var/datum/tgs_chat_command/stc = I - cached_custom_tgs_chat_commands[LOWER_TEXT(initial(stc.name))] = stc + cached_custom_tgs_chat_commands[lowertext(initial(stc.name))] = stc var/command_type = cached_custom_tgs_chat_commands[command] if(!command_type)