diff options
author | Matthew Wild <mwild1@gmail.com> | 2013-09-02 20:52:19 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2013-09-02 20:52:19 +0100 |
commit | beb2881c21aa0111cb9c57bf38f162af8222045b (patch) | |
tree | c2dc294a2796b1e8dfd3af3d96a03c89cce8d7e0 /util/set.lua | |
parent | 5eebc0a42fe2aa5cfb88b94899a8a6266d0bb989 (diff) | |
download | prosody-beb2881c21aa0111cb9c57bf38f162af8222045b.tar.gz prosody-beb2881c21aa0111cb9c57bf38f162af8222045b.zip |
util.set: Fix :include() and :exclude() methods to iterate the input set correctly
Diffstat (limited to 'util/set.lua')
-rw-r--r-- | util/set.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/set.lua b/util/set.lua index 7f45526e..b9e9ef21 100644 --- a/util/set.lua +++ b/util/set.lua @@ -91,13 +91,13 @@ function new(list) end function set:include(otherset) - for item in pairs(otherset) do + for item in otherset do items[item] = true; end end function set:exclude(otherset) - for item in pairs(otherset) do + for item in otherset do items[item] = nil; end end |