From 3976cc99593949d8070455b150533a5949b746a5 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 21 Dec 2017 13:48:21 +0100 Subject: MUC: Check delay tags when they are received instead of when they are sent --- plugins/muc/muc.lib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/muc') diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index 08415758..9f9ae13a 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -172,7 +172,7 @@ function room_mt:broadcast_message(stanza) end -- Strip delay tags claiming to be from us -module:hook("muc-broadcast-message", function (event) +module:hook("muc-occupant-message", function (event) local stanza = event.stanza; local to = stanza.attr.to; local room_jid = self.jid; -- cgit v1.2.3