0
1
mirror of https://github.com/radio95-rnt/rds95.git synced 2026-02-26 20:33:53 +01:00

handle empty setters

This commit is contained in:
2025-12-25 21:57:43 +01:00
parent 60c9d1735f
commit 9afd71dbf9

View File

@@ -1,5 +1,9 @@
function data_handle(data)
local cmd, value = data:match("([^=]+)=([^=]+)")
if cmd == nil and data:sub(-1) == "=" then
cmd = data:sub(1, -2)
value = ""
end
if cmd == nil then
data = data:lower()
if data == "ver" then return string.format("rds95 v. %s - (C) 2025 radio95 - lua parser", core_version)