Software /
code /
prosody-modules
Comparison
mod_stats39/mod_stats39.lua @ 4595:bac3dae031ee
Add note of incompatibility with trunk since 5f15ab7c6ae5
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 19 Jun 2021 12:55:14 +0200 |
parent | 3847:ffc64d285a96 |
comparison
equal
deleted
inserted
replaced
4594:1da63fe35ef3 | 4595:bac3dae031ee |
---|---|
1 local statsman = require "core.statsmanager"; | 1 local statsman = require "core.statsmanager"; |
2 local st = require "util.stanza"; | 2 local st = require "util.stanza"; |
3 local s_format = string.format; | 3 local s_format = string.format; |
4 | |
5 assert(statsman.get_stats, "not compatible with trunk based on openmetrics"); | |
4 | 6 |
5 module:add_feature("http://jabber.org/protocol/stats"); | 7 module:add_feature("http://jabber.org/protocol/stats"); |
6 | 8 |
7 module:hook("iq/host/http://jabber.org/protocol/stats:query", function (event) | 9 module:hook("iq/host/http://jabber.org/protocol/stats:query", function (event) |
8 local origin, stanza = event.origin, event.stanza; | 10 local origin, stanza = event.origin, event.stanza; |