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 | fffbc61959585b2fd64065fc71be89541334d3c4 (patch) | |
tree | 84bc4b6d8aacbda2469febe4a9d22ca27786d8fe /plugins/mod_admin_adhoc.lua | |
parent | 65c3cf814bdc794eddf78d2f7037d1d59ebc995a (diff) | |
download | prosody-fffbc61959585b2fd64065fc71be89541334d3c4.tar.gz prosody-fffbc61959585b2fd64065fc71be89541334d3c4.zip |
mod_admin_adhoc: Remove special treatment of the "pending" roster entry
Diffstat (limited to 'plugins/mod_admin_adhoc.lua')
-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 |