diff options
author | Kim Alvefur <zash@zash.se> | 2019-10-20 01:20:11 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-10-20 01:20:11 +0200 |
commit | 3e484e457e313e983d6482a0cac01ea30bb9ad26 (patch) | |
tree | 2aa2b4d2b60fb454bb1224e01369846ec32534de /plugins/muc | |
parent | 0ddc46653cacb51d6b3b935323d343fa44f9a58e (diff) | |
download | prosody-3e484e457e313e983d6482a0cac01ea30bb9ad26.tar.gz prosody-3e484e457e313e983d6482a0cac01ea30bb9ad26.zip |
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.
Diffstat (limited to 'plugins/muc')
-rw-r--r-- | plugins/muc/register.lib.lua | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/plugins/muc/register.lib.lua b/plugins/muc/register.lib.lua index 21cb3f2f..95ed1a84 100644 --- a/plugins/muc/register.lib.lua +++ b/plugins/muc/register.lib.lua @@ -48,8 +48,6 @@ module:hook("muc-set-affiliation", function (event) 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); |