Software /
code /
prosody-modules
Comparison
mod_muc_moderation/mod_muc_moderation.lua @ 3902:341850e8866f
mod_muc_moderation: Broadcast retraction via method that saves it
Otherwise the retraction is not saved to history, so that those who join
after it was sent are unaware of the retraction
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 22 Feb 2020 21:41:31 +0100 |
parent | 3901:a7ba6929d425 |
child | 4177:a38e6a8a781a |
comparison
equal
deleted
inserted
replaced
3901:a7ba6929d425 | 3902:341850e8866f |
---|---|
107 end | 107 end |
108 end | 108 end |
109 | 109 |
110 -- Done, tell people about it | 110 -- Done, tell people about it |
111 module:log("info", "Message with id '%s' in room %s moderated by %s, reason: %s", stanza_id, room_jid, actor, reason); | 111 module:log("info", "Message with id '%s' in room %s moderated by %s, reason: %s", stanza_id, room_jid, actor, reason); |
112 room:broadcast(announcement); | 112 room:broadcast_message(announcement); |
113 | 113 |
114 origin.send(st.reply(stanza)); | 114 origin.send(st.reply(stanza)); |
115 return true; | 115 return true; |
116 end); | 116 end); |
117 | 117 |