aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-12-23 06:17:11 +0100
committerKim Alvefur <zash@zash.se>2017-12-23 06:17:11 +0100
commit42af1f532ad5fda317eeb17d1001c995b1dd3d42 (patch)
treeb0aa871195af05b6403750b52594954e8c380b58 /plugins
parentddb12ae61f254ae9ec33397e9b2f2c3bf82b2aaf (diff)
downloadprosody-42af1f532ad5fda317eeb17d1001c995b1dd3d42.tar.gz
prosody-42af1f532ad5fda317eeb17d1001c995b1dd3d42.zip
MUC: Hook the correct event
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/muc.lib.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 9f9ae13a..d9e9c48a 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -172,10 +172,10 @@ function room_mt:broadcast_message(stanza)
end
-- Strip delay tags claiming to be from us
-module:hook("muc-occupant-message", function (event)
+module:hook("muc-occupant-groupchat", function (event)
local stanza = event.stanza;
- local to = stanza.attr.to;
- local room_jid = self.jid;
+ local room = event.room;
+ local room_jid = room.jid;
stanza:maptags(function (child)
if child.name == "delay" and child.attr["xmlns"] == "urn:xmpp:delay" then