Mercurial > prosody-modules
view mod_uptime_presence/mod_uptime_presence.lua @ 4678:0bcbff950f14
mod_smacks: Update README
`smacks_enabled_s2s` defaults now to `true`.
See https://hg.prosody.im/prosody-modules/file/242251ce1036/mod_smacks/mod_smacks.lua#l39
author | Martin Dosch <martin@mdosch.de> |
---|---|
date | Sun, 12 Sep 2021 13:34:46 +0200 |
parents | d3497b81a3b5 |
children |
line wrap: on
line source
local st = require"util.stanza"; local datetime = require"util.datetime"; local presence = st.presence({ from = module.host }) :tag("delay", { xmlns = "urn:xmpp:delay", stamp = datetime.datetime(prosody.start_time) }); module:hook("presence/host", function(event) local stanza = event.stanza; if stanza.attr.type == "probe" then presence.attr.id = stanza.attr.id; presence.attr.to = stanza.attr.from; module:send(presence); return true; end end, 10);