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:
@@ -1,5 +1,9 @@
|
|||||||
function data_handle(data)
|
function data_handle(data)
|
||||||
local cmd, value = data:match("([^=]+)=([^=]+)")
|
local cmd, value = data:match("([^=]+)=([^=]+)")
|
||||||
|
if cmd == nil and data:sub(-1) == "=" then
|
||||||
|
cmd = data:sub(1, -2)
|
||||||
|
value = ""
|
||||||
|
end
|
||||||
if cmd == nil then
|
if cmd == nil then
|
||||||
data = data:lower()
|
data = data:lower()
|
||||||
if data == "ver" then return string.format("rds95 v. %s - (C) 2025 radio95 - lua parser", core_version)
|
if data == "ver" then return string.format("rds95 v. %s - (C) 2025 radio95 - lua parser", core_version)
|
||||||
|
|||||||
Reference in New Issue
Block a user