# HG changeset patch # User Kim Alvefur # Date 1429964500 -7200 # Node ID c6e025411baa19675f9edc3a50fe8c848783f89f # Parent 7f9b49f2758a0359fdd459a9506692aca2f5a8be mod_admin_adhoc: Remove special treatment of the "pending" roster entry diff -r 7f9b49f2758a -r c6e025411baa plugins/mod_admin_adhoc.lua --- a/plugins/mod_admin_adhoc.lua Sun Apr 05 16:19:02 2015 +0200 +++ b/plugins/mod_admin_adhoc.lua Sat Apr 25 14:21:40 2015 +0200 @@ -246,7 +246,7 @@ local query = st.stanza("query", { xmlns = "jabber:iq:roster" }); for jid in pairs(roster) do - if jid ~= "pending" and jid then + if jid then query:tag("item", { jid = jid, subscription = roster[jid].subscription, @@ -299,7 +299,7 @@ local IPs = ""; local resources = ""; for jid in pairs(roster) do - if jid ~= "pending" and jid then + if jid then rostersize = rostersize + 1; end end