Comparison

plugins/muc/mod_muc.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 5500:eeea0eb2602a
child 5580:db5d1a350cc7
child 5938:deb261fb5c04
comparison
equal deleted inserted replaced
5576:7656b9f06bb5 5577:8b09b0d068d4
81 function create_room(jid) 81 function create_room(jid)
82 local room = muc_new_room(jid); 82 local room = muc_new_room(jid);
83 room.route_stanza = room_route_stanza; 83 room.route_stanza = room_route_stanza;
84 room.save = room_save; 84 room.save = room_save;
85 rooms[jid] = room; 85 rooms[jid] = room;
86 module:fire_event("muc-room-created", { room = room });
86 return room; 87 return room;
87 end 88 end
88 89
89 local persistent_errors = false; 90 local persistent_errors = false;
90 for jid in pairs(persistent_rooms) do 91 for jid in pairs(persistent_rooms) do