projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8777cf7
)
MUC: Include originating session and stanza in events
author
Kim Alvefur
<zash@zash.se>
Fri, 8 Apr 2016 15:54:46 +0000
(17:54 +0200)
committer
Kim Alvefur
<zash@zash.se>
Fri, 8 Apr 2016 15:54:46 +0000
(17:54 +0200)
plugins/muc/muc.lib.lua
patch
|
blob
|
history
diff --git
a/plugins/muc/muc.lib.lua
b/plugins/muc/muc.lib.lua
index 8a3a3ebd74dd9b7ac12f1688f445d2624a0990d3..02bc47f0a035af4117d9eedbdc32b9e30d39f7ef 100644
(file)
--- a/
plugins/muc/muc.lib.lua
+++ b/
plugins/muc/muc.lib.lua
@@
-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", {