mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
MUC: Fix error with nonlegacy hats.
This commit is contained in:
parent
98795d0b6e
commit
712540db35
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ module:hook("muc-build-occupant-presence", function (event)
|
|||
hats_el:tag("hat", { uri = hat_id, title = hat_data.title }):up();
|
||||
|
||||
if hats_compat then
|
||||
if not hats_el then
|
||||
if not legacy_hats_el then
|
||||
legacy_hats_el = st.stanza("hats", { xmlns = xmlns_hats_legacy });
|
||||
end
|
||||
legacy_hats_el:tag("hat", { uri = hat_id, title = hat_data.title }):up();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue