Mercurial > prosody-hg
comparison plugins/muc/mod_muc.lua @ 10449:2e36a54906e4
MUC: Indicate that the room is the origin of various errors where 'from' is an occupant JID
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Mon, 25 Nov 2019 23:52:45 +0100 |
| parents | 5611c939743a |
| children | c1edeb9fe337 |
comparison
equal
deleted
inserted
replaced
| 10448:cbe524ed1a6a | 10449:2e36a54906e4 |
|---|---|
| 189 return false; | 189 return false; |
| 190 end | 190 end |
| 191 | 191 |
| 192 local function handle_broken_room(room, origin, stanza) | 192 local function handle_broken_room(room, origin, stanza) |
| 193 module:log("debug", "Returning error from broken room %s", room.jid); | 193 module:log("debug", "Returning error from broken room %s", room.jid); |
| 194 origin.send(st.error_reply(stanza, "wait", "internal-server-error")); | 194 origin.send(st.error_reply(stanza, "wait", "internal-server-error", nil, room.jid)); |
| 195 return true; | 195 return true; |
| 196 end | 196 end |
| 197 | 197 |
| 198 local function restore_room(jid) | 198 local function restore_room(jid) |
| 199 local node = jid_split(jid); | 199 local node = jid_split(jid); |
