MUC: Rename variable to make it clearer that it is the room JID and not the MUC host
--- 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