Software /
code /
prosody
Comparison
plugins/muc/muc.lib.lua @ 7347:795a95258292
MUC: Include originating session and stanza in events
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 08 Apr 2016 17:54:46 +0200 |
parent | 7346:4ea5ce5efff8 |
child | 7352:50b24b3476e6 |
comparison
equal
deleted
inserted
replaced
7346:4ea5ce5efff8 | 7347:795a95258292 |
---|---|
493 if is_last_orig_session then | 493 if is_last_orig_session then |
494 module:fire_event("muc-occupant-left", { | 494 module:fire_event("muc-occupant-left", { |
495 room = self; | 495 room = self; |
496 nick = orig_occupant.nick; | 496 nick = orig_occupant.nick; |
497 occupant = orig_occupant; | 497 occupant = orig_occupant; |
498 origin = origin; | |
499 stanza = stanza; | |
498 }); | 500 }); |
499 end | 501 end |
500 end | 502 end |
501 | 503 |
502 if dest_occupant ~= nil then | 504 if dest_occupant ~= nil then |
535 if is_first_dest_session then | 537 if is_first_dest_session then |
536 module:fire_event("muc-occupant-joined", { | 538 module:fire_event("muc-occupant-joined", { |
537 room = self; | 539 room = self; |
538 nick = dest_occupant.nick; | 540 nick = dest_occupant.nick; |
539 occupant = dest_occupant; | 541 occupant = dest_occupant; |
542 stanza = stanza; | |
543 origin = origin; | |
540 }); | 544 }); |
541 end | 545 end |
542 module:fire_event("muc-occupant-session-new", { | 546 module:fire_event("muc-occupant-session-new", { |
543 room = self; | 547 room = self; |
544 nick = dest_occupant.nick; | 548 nick = dest_occupant.nick; |