MUC: Rename variable to make it clearer that it is the room JID and not the MUC host 0.9.13
authorKim Alvefur <zash@zash.se>
Sun, 10 Dec 2017 17:52:47 +0100
changeset 8479 082d12728645
parent 8478 eb85b10e1fea
child 8480 597c23e1c38e
child 8590 986c3e22ec32
MUC: Rename variable to make it clearer that it is the room JID and not the MUC host
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