mod_admin_adhoc: Remove special treatment of the "pending" roster entry
authorKim Alvefur <zash@zash.se>
Sat, 25 Apr 2015 14:21:40 +0200
changeset 6630 c6e025411baa
parent 6627 7f9b49f2758a
child 6631 8495734da243
mod_admin_adhoc: Remove special treatment of the "pending" roster entry
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