aboutsummaryrefslogtreecommitdiffstats
path: root/util
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
commit8eb7b73968209de2031d534abad17045f956a35e (patch)
tree830cfa780955b317d2dcfed69ec03eef9580d00b /util
parentacf2cd9d36489efca06af796f2ba0d084f4dfe1b (diff)
parentcb7584022716f4407b4460754645e6af587e4730 (diff)
downloadprosody-8eb7b73968209de2031d534abad17045f956a35e.tar.gz
prosody-8eb7b73968209de2031d534abad17045f956a35e.zip
Merge 0.9->trunk
Diffstat (limited to 'util')
-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