# HG changeset patch # User Kim Alvefur # Date 1512924767 -3600 # Node ID 082d127286451eb55420c36424dd321e8d9bceee # Parent eb85b10e1feaf14e4bde4468bb7d8e139d71c8ac MUC: Rename variable to make it clearer that it is the room JID and not the MUC host diff -r eb85b10e1fea -r 082d12728645 plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Sat Dec 09 17:57:14 2017 +0100 +++ b/plugins/muc/muc.lib.lua Sun Dec 10 17:52:47 2017 +0100 @@ -122,16 +122,16 @@ end function room_mt:broadcast_message(stanza, historic) local to = stanza.attr.to; - local muc_jid = self.jid; + local room_jid = self.jid; stanza:maptags(function (child) if child.name == "delay" and child.attr["xmlns"] == "urn:xmpp:delay" then - if child.attr["from"] == muc_jid then + if child.attr["from"] == room_jid then return nil; end end if child.name == "x" and child.attr["xmlns"] == "jabber:x:delay" then - if child.attr["from"] == muc_jid then + if child.attr["from"] == room_jid then return nil; end end