Mercurial > prosody-hg
view plugins/mod_muc_unique.lua @ 14070:d7f2ffc25273 13.0
mod_carbons: Fix some carbons decision-making bugs (fixes #1861)
This was introduced when refactoring into an event in commit 063ce658c181
(released in 0.12.0).
Known policies to be affected:
- Copying of outgoing MUC PMs (#1861)
- Copying of archived stanzas (if not copied by other rules)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 11 Feb 2026 11:38:55 +0000 |
| parents | 74b9e05af71e |
| children |
line wrap: on
line source
-- XEP-0307: Unique Room Names for Multi-User Chat local st = require "prosody.util.stanza"; local unique_name = require "prosody.util.id".medium; module:add_feature "http://jabber.org/protocol/muc#unique" module:hook("iq-get/host/http://jabber.org/protocol/muc#unique:unique", function(event) local origin, stanza = event.origin, event.stanza; origin.send(st.reply(stanza) :tag("unique", {xmlns = "http://jabber.org/protocol/muc#unique"}) :text(unique_name():lower()) ); return true; end,-1);
