Merge 0.9->trunk
[prosody.git] / util / set.lua
index e9dfec1bca729b509040e785248389187dca8abd..a2df669c05e97706b8d6120cddece71a8a5d73b7 100644 (file)
@@ -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