aboutsummaryrefslogtreecommitdiffstats
path: root/util/hex.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2022-03-04 16:33:41 +0000
committerMatthew Wild <mwild1@gmail.com>2022-03-04 16:33:41 +0000
commitb47c7951d54d64a3a89854bb80f5d67cc2da90ab (patch)
tree916354af1f314292b4410e1febcfe6a71e398cf0 /util/hex.lua
parentb6bf4788aa3d5c7ee847c690fcd0fbd9346a5dc7 (diff)
parenta6265e45a04a7f7d5ae39c5608f7a350be1410db (diff)
downloadprosody-b47c7951d54d64a3a89854bb80f5d67cc2da90ab.tar.gz
prosody-b47c7951d54d64a3a89854bb80f5d67cc2da90ab.zip
Merge config-updates+check-turn from timber
Diffstat (limited to 'util/hex.lua')
-rw-r--r--util/hex.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/util/hex.lua b/util/hex.lua
index 4cc28d33..6202620f 100644
--- a/util/hex.lua
+++ b/util/hex.lua
@@ -23,4 +23,8 @@ local function from(s)
return (s_gsub(s_lower(s), "%X*(%x%x)%X*", hex_to_char));
end
-return { to = to, from = from }
+return {
+ encode = to, decode = from;
+ -- COMPAT w/pre-0.12:
+ to = to, from = from;
+};