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

check if data nil

This commit is contained in:
2025-12-22 19:44:56 +01:00
parent d3ceac402b
commit 71ea29941a

View File

@@ -1,4 +1,4 @@
if type(data) == "string" then
if type(data) == "string" and data ~= nil then
local cmd, value = data:match("([^=]+)=([^=]+)")
if cmd == nil then
data = data:lower()