mod_stats39: Advertise namespace as feature (not part of the XEP?)
authorKim Alvefur <zash@zash.se>
Sun, 19 Jan 2020 19:31:43 +0100
changeset 3851 ffc64d285a96
parent 3850 3941768916f1
child 3852 1b9834500123
mod_stats39: Advertise namespace as feature (not part of the XEP?)
mod_stats39/mod_stats39.lua
--- a/mod_stats39/mod_stats39.lua	Sun Jan 19 19:27:46 2020 +0100
+++ b/mod_stats39/mod_stats39.lua	Sun Jan 19 19:31:43 2020 +0100
@@ -2,6 +2,8 @@
 local st = require "util.stanza";
 local s_format = string.format;
 
+module:add_feature("http://jabber.org/protocol/stats");
+
 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();