aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/muc.lib.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-12-10 17:52:47 +0100
committerKim Alvefur <zash@zash.se>2017-12-10 17:52:47 +0100
commit173196f0768840086608655323c9978a73eef859 (patch)
treea842bda423a3049d434a98d40e4dc620c9724fd2 /plugins/muc/muc.lib.lua
parent79465f809f2ec6eb5d951aabe171c15bec17cbb6 (diff)
downloadprosody-173196f0768840086608655323c9978a73eef859.tar.gz
prosody-173196f0768840086608655323c9978a73eef859.zip
MUC: Rename variable to make it clearer that it is the room JID and not the MUC host
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r--plugins/muc/muc.lib.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 0040b99c..e8d565f2 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -122,16 +122,16 @@ function room_mt:broadcast_presence(stanza, sid, code, nick)
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