diff options
author | Kim Alvefur <zash@zash.se> | 2018-02-16 08:23:26 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-02-16 08:23:26 +0100 |
commit | 10f8cb0c57645b6e307bff244323766257564839 (patch) | |
tree | 7a1b7473d196d006b8a5f59291340f9880fe1b40 /util/set.lua | |
parent | 129a24f6cc16f9151327eccec2112db9a1ddff53 (diff) | |
download | prosody-10f8cb0c57645b6e307bff244323766257564839.tar.gz prosody-10f8cb0c57645b6e307bff244323766257564839.zip |
util.set: Add a __name field to metatable
Diffstat (limited to 'util/set.lua')
-rw-r--r-- | util/set.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/set.lua b/util/set.lua index c136a522..8630638e 100644 --- a/util/set.lua +++ b/util/set.lua @@ -12,7 +12,7 @@ local t_concat = table.concat; local _ENV = nil; -local set_mt = {}; +local set_mt = { __name = "set" }; function set_mt.__call(set, _, k) return next(set._items, k); end |