diff options
Diffstat (limited to 'src/utils.lua')
| -rw-r--r-- | src/utils.lua | 12 |
1 files changed, 12 insertions, 0 deletions
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 |
