refactor: enhance status message handling for dual-mode channel compatibility

This commit is contained in:
MayaTheShy
2026-03-26 16:19:29 -04:00
parent ea90a860e9
commit ffb6d679c0

View File

@@ -231,7 +231,9 @@ local function main()
local replyChannel = param3
local message = param4
if channel == STATUS_CHANNEL and type(message) == "table" then
-- Uses Channels.match() for dual-mode safety: accepts messages on
-- both legacy (102) and target (4212) channels during migration.
if Channels.match('remoteturtle.status', channel) and type(message) == "table" then
handleStatus(message)
end