Diff

plugins/muc/muc.lib.lua @ 8482:8b2219011386

MUC: Check delay tags when they are received instead of when they are sent
author Kim Alvefur <zash@zash.se>
date Thu, 21 Dec 2017 13:48:21 +0100
parent 8481:d546815e555e
child 8486:c50101b527bf
line wrap: on
line diff
--- 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;