changeset 3840:054898e84a04

mod_stats39: Use a more local reference (silence luacheck warning)
author Kim Alvefur <zash@zash.se>
date Wed, 08 Jan 2020 21:02:47 +0100
parents a4b05f34a790
children b5d367798570
files mod_stats39/mod_stats39.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_stats39/mod_stats39.lua	Wed Jan 08 20:53:57 2020 +0100
+++ b/mod_stats39/mod_stats39.lua	Wed Jan 08 21:02:47 2020 +0100
@@ -4,7 +4,7 @@
 module:hook("iq/host/http://jabber.org/protocol/stats:query", function (event)
 	local origin, stanza = event.origin, event.stanza;
 	local stats, _, extra = statsman.get_stats();
-	local reply = st.reply(event.stanza);
+	local reply = st.reply(stanza);
 	reply:tag("query", { xmlns = "http://jabber.org/protocol/stats" });
 	for stat, value in pairs(stats) do
 		local unit = extra[stat] and extra[stat].units;