Changeset

6627:c6e025411baa

mod_admin_adhoc: Remove special treatment of the "pending" roster entry
author Kim Alvefur <zash@zash.se>
date Sat, 25 Apr 2015 14:21:40 +0200
parents 6624:7f9b49f2758a
children 6628:8495734da243
files plugins/mod_admin_adhoc.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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