# HG changeset patch # User Kim Alvefur # Date 1571527211 -7200 # Node ID 4e406944ff85f7cb0882ea03cb84274419f186ec # Parent 906ea5e1ec7521f2c0b991488eb593815c306a24 MUC: Don't advertise registration feature on host JID (fixes #1451) There is currently no mention in XEP-0045 of how or where to advertise support for registration. Advertising on the host JID may be confusable with service-wide registration, as implemented in ejabberd. A common and sensible pattern in XMPP is that a feature is advertised on the JID where the service is available. diff -r 906ea5e1ec75 -r 4e406944ff85 plugins/muc/register.lib.lua --- a/plugins/muc/register.lib.lua Thu Oct 03 16:38:15 2019 +0100 +++ b/plugins/muc/register.lib.lua Sun Oct 20 01:20:11 2019 +0200 @@ -48,8 +48,6 @@ event.room._reserved_nicks = nil; end); -module:add_feature("jabber:iq:register"); - module:hook("muc-disco#info", function (event) event.reply:tag("feature", { var = "jabber:iq:register" }):up(); end);