Mercurial > prosody-hg
comparison plugins/muc/muc.lib.lua @ 8887:c47f220580fd
Backed out changeset b8c3dbf76a2e (fixes #1162)
This is not required by the XEP and has privacy issues.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 08 Jun 2018 16:02:57 +0200 |
| parents | 463505cc75d5 |
| children | cbcac5b9b7ce |
comparison
equal
deleted
inserted
replaced
| 8886:9aa35cb939ac | 8887:c47f220580fd |
|---|---|
| 233 module:fire_event("muc-disco#info", { room = self, reply = reply, form = dataform, formdata = formdata }); | 233 module:fire_event("muc-disco#info", { room = self, reply = reply, form = dataform, formdata = formdata }); |
| 234 reply:add_child(dataform:form(formdata, 'result')) | 234 reply:add_child(dataform:form(formdata, 'result')) |
| 235 return reply; | 235 return reply; |
| 236 end | 236 end |
| 237 function room_mt:get_disco_items(stanza) | 237 function room_mt:get_disco_items(stanza) |
| 238 local reply = st.reply(stanza):query("http://jabber.org/protocol/disco#items"); | 238 return st.reply(stanza):query("http://jabber.org/protocol/disco#items"); |
| 239 for room_jid in pairs(self._occupants) do | |
| 240 reply:tag("item", {jid = room_jid, name = room_jid:match("/(.*)")}):up(); | |
| 241 end | |
| 242 return reply; | |
| 243 end | 239 end |
| 244 function room_mt:set_subject(current_nick, subject) | 240 function room_mt:set_subject(current_nick, subject) |
| 245 if subject == "" then subject = nil; end | 241 if subject == "" then subject = nil; end |
| 246 self._data['subject'] = subject; | 242 self._data['subject'] = subject; |
| 247 self._data['subject_from'] = current_nick; | 243 self._data['subject_from'] = current_nick; |
