Software /
code /
prosody
Comparison
plugins/muc/muc.lib.lua @ 9011:ce8e5206aeba
MUC: Include destruction reason and other info in destroyed event
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 11 Jul 2018 02:29:01 +0200 |
parent | 9007:695904638cfa |
child | 9017:1184f5762592 |
comparison
equal
deleted
inserted
replaced
9010:3c5ddd53fe50 | 9011:ce8e5206aeba |
---|---|
848 if reason then x:tag("reason"):text(reason):up(); end | 848 if reason then x:tag("reason"):text(reason):up(); end |
849 if password then x:tag("password"):text(password):up(); end | 849 if password then x:tag("password"):text(password):up(); end |
850 x:up(); | 850 x:up(); |
851 self.destroying = reason or true; | 851 self.destroying = reason or true; |
852 self:clear(x); | 852 self:clear(x); |
853 module:fire_event("muc-room-destroyed", { room = self }); | 853 module:fire_event("muc-room-destroyed", { room = self, reason = reason, newjid = newjid, password = password }); |
854 return true; | 854 return true; |
855 end | 855 end |
856 | 856 |
857 function room_mt:handle_disco_info_get_query(origin, stanza) | 857 function room_mt:handle_disco_info_get_query(origin, stanza) |
858 origin.send(self:get_disco_info(stanza)); | 858 origin.send(self:get_disco_info(stanza)); |