diff options
author | Matthew Wild <mwild1@gmail.com> | 2014-08-28 09:17:07 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2014-08-28 09:17:07 +0100 |
commit | bc7eb5a275612742ce7508dea93b6e5953016ac1 (patch) | |
tree | c73f0e505eca72b6543576c26357fe178e0691e1 | |
parent | 2a6c5e98cf0c6968d9a48b3a21e02ff25f5abee5 (diff) | |
download | prosody-bc7eb5a275612742ce7508dea93b6e5953016ac1.tar.gz prosody-bc7eb5a275612742ce7508dea93b6e5953016ac1.zip |
mod_privacy: Fix to correctly sort privacy list rules by order (thanks Flow)
-rw-r--r-- | plugins/mod_privacy.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_privacy.lua b/plugins/mod_privacy.lua index 31ace9f9..49c9427f 100644 --- a/plugins/mod_privacy.lua +++ b/plugins/mod_privacy.lua @@ -157,7 +157,7 @@ function createOrReplaceList (privacy_lists, origin, stanza, name, entries) 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 |