From cdf851275189c9cbe053c1717955bfe73497b6de Mon Sep 17 00:00:00 2001 From: Autumn Date: Sun, 17 May 2026 01:05:50 +0100 Subject: [fetch] added pretty output for service look-ups --- src/utils.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/utils.lua') diff --git a/src/utils.lua b/src/utils.lua index af6e91f..5bcbc8c 100644 --- a/src/utils.lua +++ b/src/utils.lua @@ -15,3 +15,15 @@ function string.fromhex(str) return string.char(tonumber(cc, 16)) end)) end + +-- get information from the pawsd response +function extractfromresponse(response, start, last) + + local result = {} + + table.move(response, start, last, 1, result) + result = string.tohex(table.concat(result)) + + return result + +end -- cgit v1.3