0
1
mirror of https://github.com/radio95-rnt/rds95.git synced 2026-02-26 20:33:53 +01:00
This commit is contained in:
2025-12-31 20:11:12 +01:00
parent 93daa223f3
commit 225fddcb26
2 changed files with 4 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ function data_handle(data)
local stat, err = pcall(function ()
results = { chunk() }
end)
if not stat then return tostring(err) end
if not stat then return tostring(err) .. "\r\n" end
for i = 1, #results do results[i] = tostring(results[i]) end
return table.concat(results, ", ") .. "\r\n"
elseif string.sub(data, 1, 5):lower() == "file=" then
@@ -16,7 +16,7 @@ function data_handle(data)
local stat, err = pcall(function ()
results = { chunk() }
end)
if not stat then return tostring(err) end
if not stat then return tostring(err) .. "\r\n" end
for i = 1, #results do results[i] = tostring(results[i]) end
return table.concat(results, ", ") .. "\r\n"
elseif string.sub(data, 1, 7):lower() == "rawlua=" then
@@ -26,7 +26,7 @@ function data_handle(data)
local stat, err = pcall(function ()
results = { chunk() }
end)
if not stat then return tostring(err) end
if not stat then return tostring(err) .. "\r\n" end
for i = 1, #results do results[i] = tostring(results[i]) end
return table.concat(results, ", ") .. "\r\n"
end