Software /
code /
prosody
Changeset
5813:c888f548876b
util.set: Fix :include() and :exclude() methods to iterate the input set correctly
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 02 Sep 2013 20:52:19 +0100 |
parents | 5812:57ebf93ec720 |
children | 5814:5cf1c08805fb 5815:b93d096607b4 |
files | util/set.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/util/set.lua Mon Sep 02 18:19:38 2013 +0200 +++ b/util/set.lua Mon Sep 02 20:52:19 2013 +0100 @@ -91,13 +91,13 @@ 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