diff options
author | Kim Alvefur <zash@zash.se> | 2015-04-25 14:21:40 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-04-25 14:21:40 +0200 |
commit | 1265483280b09699ea6def541dd6df519a1e9c46 (patch) | |
tree | 84bc4b6d8aacbda2469febe4a9d22ca27786d8fe | |
parent | 336f7667f8c677c9d1222c993e3f99bff0180772 (diff) | |
download | prosody-1265483280b09699ea6def541dd6df519a1e9c46.tar.gz prosody-1265483280b09699ea6def541dd6df519a1e9c46.zip |
mod_admin_adhoc: Remove special treatment of the "pending" roster entry
-rw-r--r-- | plugins/mod_admin_adhoc.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_admin_adhoc.lua b/plugins/mod_admin_adhoc.lua index 405980c2..4fab84bc 100644 --- a/plugins/mod_admin_adhoc.lua +++ b/plugins/mod_admin_adhoc.lua @@ -246,7 +246,7 @@ local get_user_roster_handler = adhoc_simple(get_user_roster_layout, function(fi 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 get_user_stats_handler = adhoc_simple(get_user_stats_layout, function(fiel local IPs = ""; local resources = ""; for jid in pairs(roster) do - if jid ~= "pending" and jid then + if jid then rostersize = rostersize + 1; end end |