# HG changeset patch # User Matthew Wild # Date 1525798742 -3600 # Node ID a6fa44eeb8182d045e90beeb7b822f91e5d1d76f # Parent 26fe44c68791b5a15095e3984d52f4744cfb3592 mod_privacy_lists: Convert order to a string before using as attribute value (thanks ValdikSS) diff -r 26fe44c68791 -r a6fa44eeb818 mod_privacy_lists/mod_privacy_lists.lua --- a/mod_privacy_lists/mod_privacy_lists.lua Tue May 01 01:59:14 2018 +0200 +++ b/mod_privacy_lists/mod_privacy_lists.lua Tue May 08 17:59:02 2018 +0100 @@ -214,7 +214,7 @@ if list then reply = reply:tag("list", {name=list.name}); for _,item in ipairs(list.items) do - reply:tag("item", {type=item.type, value=item.value, action=item.action, order=item.order}); + reply:tag("item", {type=item.type, value=item.value, action=item.action, order=("%d"):format(item.order)}); if item["message"] then reply:tag("message"):up(); end if item["iq"] then reply:tag("iq"):up(); end if item["presence-in"] then reply:tag("presence-in"):up(); end