Software / code / prosody
Comparison
plugins/muc/muc.lib.lua @ 7684:65ba769d9f05
MUC: Return 'true' from room:destroy() so that use from the telnet console says 'OK'
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 01 Oct 2016 21:51:07 +0200 |
| parent | 7443:4a178edc9847 |
| child | 7686:8d6f367bed8c |
| child | 7997:aca13c433e45 |
comparison
equal
deleted
inserted
replaced
| 7683:7356bf4425f4 | 7684:65ba769d9f05 |
|---|---|
| 754 end | 754 end |
| 755 self._occupants[nick] = nil; | 755 self._occupants[nick] = nil; |
| 756 end | 756 end |
| 757 self:set_persistent(false); | 757 self:set_persistent(false); |
| 758 module:fire_event("muc-room-destroyed", { room = self }); | 758 module:fire_event("muc-room-destroyed", { room = self }); |
| 759 return true; | |
| 759 end | 760 end |
| 760 | 761 |
| 761 function room_mt:handle_to_room(origin, stanza) -- presence changes and groupchat messages, along with disco/etc | 762 function room_mt:handle_to_room(origin, stanza) -- presence changes and groupchat messages, along with disco/etc |
| 762 local type = stanza.attr.type; | 763 local type = stanza.attr.type; |
| 763 local xmlns = stanza.tags[1] and stanza.tags[1].attr.xmlns; | 764 local xmlns = stanza.tags[1] and stanza.tags[1].attr.xmlns; |