projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07c43c8
)
mod_privacy: Fix to correctly sort privacy list rules by order (thanks Flow)
author
Matthew Wild
<mwild1@gmail.com>
Thu, 28 Aug 2014 08:17:07 +0000
(09:17 +0100)
committer
Matthew Wild
<mwild1@gmail.com>
Thu, 28 Aug 2014 08:17:07 +0000
(09:17 +0100)
plugins/mod_privacy.lua
patch
|
blob
|
history
diff --git
a/plugins/mod_privacy.lua
b/plugins/mod_privacy.lua
index 31ace9f9df126eb25ddaf66d40226bb1788ea28d..49c9427fd1759a021b65597454ddecdf9d5c0493 100644
(file)
--- 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