aboutsummaryrefslogtreecommitdiffstats
path: root/util/set.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2013-09-03 00:20:28 +0100
committerMatthew Wild <mwild1@gmail.com>2013-09-03 00:20:28 +0100
commitc6bf0953e395f36b133e0c2e8cc2ef25e943df7f (patch)
tree830cfa780955b317d2dcfed69ec03eef9580d00b /util/set.lua
parent2fa9d5e3837fd16af5de15761a10319008814301 (diff)
parentbeb2881c21aa0111cb9c57bf38f162af8222045b (diff)
downloadprosody-c6bf0953e395f36b133e0c2e8cc2ef25e943df7f.tar.gz
prosody-c6bf0953e395f36b133e0c2e8cc2ef25e943df7f.zip
Merge 0.9->trunk
Diffstat (limited to 'util/set.lua')
-rw-r--r--util/set.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/set.lua b/util/set.lua
index e9dfec1b..a2df669c 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