# HG changeset patch # User Matthew Wild # Date 1409213827 -3600 # Node ID 75bd55e841125c0fcd46d2593991a60674ea4298 # Parent 4e93e8768c3607cd2d8fac1070214046a26d5aca mod_privacy: Fix to correctly sort privacy list rules by order (thanks Flow) diff -r 4e93e8768c36 -r 75bd55e84112 plugins/mod_privacy.lua --- a/plugins/mod_privacy.lua Sat Aug 23 09:29:17 2014 +0100 +++ b/plugins/mod_privacy.lua Thu Aug 28 09:17:07 2014 +0100 @@ -157,7 +157,7 @@ list.items[#list.items + 1] = tmp; end - table.sort(list, function(a, b) return a.order < b.order; end); + table.sort(list.items, function(a, b) return a.order < b.order; end); origin.send(st.reply(stanza)); if bare_sessions[bare_jid] ~= nil then