Software /
code /
prosody
Comparison
plugins/muc/request.lib.lua @ 9704:89f2ebf0615b
Merge 0.11->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 15 Dec 2018 11:59:11 +0100 |
parent | 9703:0cfb7b3593eb |
child | 12977:74b9e05af71e |
comparison
equal
deleted
inserted
replaced
9702:3a1b07d8c314 | 9704:89f2ebf0615b |
---|---|
80 ["muc#jid"] = event.stanza.attr.from; | 80 ["muc#jid"] = event.stanza.attr.from; |
81 ["muc#roomnick"] = nick; | 81 ["muc#roomnick"] = nick; |
82 }; | 82 }; |
83 | 83 |
84 local message = st.message({ type = "normal"; from = event.room.jid }) | 84 local message = st.message({ type = "normal"; from = event.room.jid }) |
85 :add_direct_child(voice_request_form:form(formdata)); | 85 :add_child(voice_request_form:form(formdata)); |
86 | 86 |
87 event.room:broadcast(message, function (_, occupant) | 87 event.room:broadcast(message, function (_, occupant) |
88 return occupant.role == "moderator"; | 88 return occupant.role == "moderator"; |
89 end); | 89 end); |
90 end | 90 end |