Changeset

3650:30743ae1fe1a

mod_map: Update for new API in prosody 1e2b444acb72
author Kim Alvefur <zash@zash.se>
date Fri, 23 Aug 2019 01:08:12 +0200
parents 3649:d252c8573f33
children 3651:95f7291db669
files mod_map/mod_map.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_map/mod_map.lua	Fri Aug 23 00:19:46 2019 +0200
+++ b/mod_map/mod_map.lua	Fri Aug 23 01:08:12 2019 +0200
@@ -54,7 +54,7 @@
 
 	local reply = st.reply(stanza);
 	reply:tag("summary", { xmlns = "xmpp:prosody.im/mod_map" });
-	for jid, count in pairs(summary) do
+	for jid, count in pairs(summary.counts) do
 		reply:tag("item", { jid = jid });
 		if type(count) == "number" then
 			reply:text_tag("count", ("%d"):format(count));