MUC: Include originating session and stanza in events
authorKim Alvefur <zash@zash.se>
Fri, 8 Apr 2016 15:54:46 +0000 (17:54 +0200)
committerKim Alvefur <zash@zash.se>
Fri, 8 Apr 2016 15:54:46 +0000 (17:54 +0200)
plugins/muc/muc.lib.lua

index 8a3a3ebd74dd9b7ac12f1688f445d2624a0990d3..02bc47f0a035af4117d9eedbdc32b9e30d39f7ef 100644 (file)
@@ -495,6 +495,8 @@ function room_mt:handle_presence_to_occupant(origin, stanza)
                                        room = self;
                                        nick = orig_occupant.nick;
                                        occupant = orig_occupant;
+                                       origin = origin;
+                                       stanza = stanza;
                                });
                        end
                end
@@ -537,6 +539,8 @@ function room_mt:handle_presence_to_occupant(origin, stanza)
                                                room = self;
                                                nick = dest_occupant.nick;
                                                occupant = dest_occupant;
+                                               stanza = stanza;
+                                               origin = origin;
                                        });
                                end
                                module:fire_event("muc-occupant-session-new", {