Software /
code /
prosody
Comparison
plugins/muc/muc.lib.lua @ 7411:f385cd6127b2
MUC: Add event for when room is done being created
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 28 Apr 2016 22:57:53 +0200 |
parent | 7410:45f543c82893 |
child | 7412:f9744effae04 |
comparison
equal
deleted
inserted
replaced
7410:45f543c82893 | 7411:f385cd6127b2 |
---|---|
432 nick = dest_occupant.nick; | 432 nick = dest_occupant.nick; |
433 occupant = dest_occupant; | 433 occupant = dest_occupant; |
434 stanza = stanza; | 434 stanza = stanza; |
435 origin = origin; | 435 origin = origin; |
436 jid = real_jid; | 436 jid = real_jid; |
437 }); | |
438 module:fire_event("muc-room-created", { | |
439 room = self; | |
440 creator = dest_occupant; | |
441 stanza = stanza; | |
442 origin = origin; | |
437 }); | 443 }); |
438 return true; | 444 return true; |
439 end | 445 end |
440 | 446 |
441 function room_mt:handle_normal_presence(origin, stanza) | 447 function room_mt:handle_normal_presence(origin, stanza) |