Mercurial > prosody-modules
view mod_saslname/mod_saslname.lua @ 5843:79ae71f52c81
mod_pubsub_serverinfo: Update to use mod_server_info (fixes #1841)
...but only for Prosody trunk users, because 0.12 mod_server_contact_info does
not use the new API in mod_server_info.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 23 Feb 2024 22:50:57 +0000 |
parents | e927d95512e8 |
children |
line wrap: on
line source
local hostname = module:get_option_string("sasl_hostname", module.host); module:hook("stream-features", function(event) local features = event.features; local mechs = features:get_child("mechanisms", "urn:ietf:params:xml:ns:xmpp-sasl"); if mechs then mechs:tag("hostname", { xmlns = "urn:xmpp:domain-based-name:1" }) :text(hostname):up(); end end);