Software /
code /
prosody-modules
Changeset
4691:1f1dbf652b37
mod_muc_require_tos: Send the message after the subject, once the client is fully joined
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 16 Sep 2021 22:32:59 +0200 |
parents | 4690:82dabfffaddf |
children | 4692:37232302dfb9 |
files | mod_muc_require_tos/mod_muc_require_tos.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_muc_require_tos/mod_muc_require_tos.lua Thu Sep 16 20:41:14 2021 +0200 +++ b/mod_muc_require_tos/mod_muc_require_tos.lua Thu Sep 16 22:32:59 2021 +0200 @@ -6,7 +6,7 @@ local yes_message = module:get_option_string("tos_yes_message"); local no_message = module:get_option_string("tos_no_message"); -module:hook("muc-occupant-joined", function(event) +module:hook("muc-occupant-session-new", function(event) local origin = event.origin; local room = event.room; local occupant = event.occupant; @@ -24,7 +24,7 @@ :tag("response", { xmlns = quick_response_ns, value = "no", label = "I decline." }):up(); origin.send(message); end -end); +end, 19); module:hook("muc-occupant-groupchat", function(event) local occupant = event.occupant;