# HG changeset patch # User Kim Alvefur # Date 1513860501 -3600 # Node ID 8b221901138633b188974e1495608ef0235e50d4 # Parent d546815e555e72e807ab81ee48907456d2b6a6b7 MUC: Check delay tags when they are received instead of when they are sent diff -r d546815e555e -r 8b2219011386 plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Thu Dec 21 13:38:59 2017 +0100 +++ b/plugins/muc/muc.lib.lua Thu Dec 21 13:48:21 2017 +0100 @@ -172,7 +172,7 @@ 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;