Software /
code /
prosody
Diff
util/caps.lua @ 6791:e813e8cf6046
Merge 0.10->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 20 Aug 2015 13:05:22 +0200 |
parent | 6777:5de6b93d0190 |
child | 8555:4f0f5b49bb03 |
line wrap: on
line diff
--- a/util/caps.lua Mon Aug 17 01:58:53 2015 +0200 +++ b/util/caps.lua Thu Aug 20 13:05:22 2015 +0200 @@ -12,9 +12,9 @@ local t_insert, t_sort, t_concat = table.insert, table.sort, table.concat; local ipairs = ipairs; -module "caps" +local _ENV = nil; -function calculate_hash(disco_info) +local function calculate_hash(disco_info) local identities, features, extensions = {}, {}, {}; for _, tag in ipairs(disco_info) do if tag.name == "identity" then @@ -58,4 +58,6 @@ return ver, S; end -return _M; +return { + calculate_hash = calculate_hash; +};