Software /
code /
prosody
Comparison
plugins/muc/muc.lib.lua @ 5577:8b09b0d068d4
mod_muc: Fire muc-room-created and muc-room-destroyed events (thanks nik)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 14 May 2013 09:38:54 +0100 |
parent | 5542:329ebdfb39a2 |
child | 5580:db5d1a350cc7 |
child | 5680:24b044f6e06d |
comparison
equal
deleted
inserted
replaced
5576:7656b9f06bb5 | 5577:8b09b0d068d4 |
---|---|
765 self._jid_nick[jid] = nil; | 765 self._jid_nick[jid] = nil; |
766 end | 766 end |
767 self._occupants[nick] = nil; | 767 self._occupants[nick] = nil; |
768 end | 768 end |
769 self:set_persistent(false); | 769 self:set_persistent(false); |
770 module:fire_event("muc-room-destroyed", { room = self }); | |
770 end | 771 end |
771 | 772 |
772 function room_mt:handle_to_room(origin, stanza) -- presence changes and groupchat messages, along with disco/etc | 773 function room_mt:handle_to_room(origin, stanza) -- presence changes and groupchat messages, along with disco/etc |
773 local type = stanza.attr.type; | 774 local type = stanza.attr.type; |
774 local xmlns = stanza.tags[1] and stanza.tags[1].attr.xmlns; | 775 local xmlns = stanza.tags[1] and stanza.tags[1].attr.xmlns; |