Mercurial > prosody-hg
comparison plugins/muc/mod_muc.lua @ 13657:404d3644ac4a
mod_muc: Integrate support for vcards/avatars on MUC rooms
This was previously served by a community module (mod_vcard_muc).
It can be disabled by setting `vcard_muc = false` in the config.
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 06 Feb 2025 17:08:46 +0000 |
| parents | 3e6d5738ea09 |
| children | 9a2075e3e383 |
comparison
equal
deleted
inserted
replaced
| 13656:4298e6565fec | 13657:404d3644ac4a |
|---|---|
| 113 module:add_identity("conference", "text", module:get_option_string("name", "Prosody Chatrooms")); | 113 module:add_identity("conference", "text", module:get_option_string("name", "Prosody Chatrooms")); |
| 114 module:add_feature("http://jabber.org/protocol/muc"); | 114 module:add_feature("http://jabber.org/protocol/muc"); |
| 115 module:depends "muc_unique" | 115 module:depends "muc_unique" |
| 116 module:require "muc/hats"; | 116 module:require "muc/hats"; |
| 117 module:require "muc/lock"; | 117 module:require "muc/lock"; |
| 118 | |
| 119 if module:get_option_boolean("muc_vcard", true) ~= false then | |
| 120 module:require "muc/vcard"; | |
| 121 end | |
| 118 | 122 |
| 119 module:default_permissions("prosody:admin", { | 123 module:default_permissions("prosody:admin", { |
| 120 ":automatic-ownership"; | 124 ":automatic-ownership"; |
| 121 ":create-room"; | 125 ":create-room"; |
| 122 ":recreate-destroyed-room"; | 126 ":recreate-destroyed-room"; |
