equal
deleted
inserted
replaced
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; |