Software /
code /
prosody
Changeset
8476:082d12728645 0.9.13
MUC: Rename variable to make it clearer that it is the room JID and not the MUC host
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 10 Dec 2017 17:52:47 +0100 |
parents | 8475:eb85b10e1fea |
children | 8477:597c23e1c38e 8587:986c3e22ec32 |
files | plugins/muc/muc.lib.lua |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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