Mercurial > prosody-modules
diff mod_groups_internal/mod_groups_internal.lua @ 4403:31470a256851
mod_groups_internal: Prep MUC JID before exposing/storing it (just in case)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 27 Jan 2021 14:52:30 +0000 |
parents | 846b7af5588c |
children | a5a0b51d26e9 |
line wrap: on
line diff
--- a/mod_groups_internal/mod_groups_internal.lua Wed Jan 27 08:16:26 2021 +0000 +++ b/mod_groups_internal/mod_groups_internal.lua Wed Jan 27 14:52:30 2021 +0000 @@ -113,7 +113,7 @@ return nil, "internal-server-error" end - muc_jid = id.short() .. "@" .. muc_host_name + muc_jid = jid.prep(id.short() .. "@" .. muc_host_name); room = muc_host.create_room(muc_jid) if not room then delete_group(group_id)