mod_muc_rtbl/mod_muc_rtbl.lua
changeset 5179 432587ad1642
parent 5178 354832098f2f
child 5180 4791e0412ff3
--- a/mod_muc_rtbl/mod_muc_rtbl.lua	Tue Feb 21 21:41:19 2023 +0100
+++ b/mod_muc_rtbl/mod_muc_rtbl.lua	Wed Feb 22 13:33:16 2023 +0100
@@ -94,13 +94,13 @@
 function update_hashes(occupant)
 	local bare_hash, host_hash;
 	if not occupant.mod_muc_rtbl_bare_hash then
-		bare_hash = sha256(jid.bare(event.stanza.attr.from), true);
+		bare_hash = sha256(jid.bare(occupant.bare_jid), true);
 		occupant.mod_muc_rtbl_bare_hash = bare_hash;
 	else
 		bare_hash = occupant.mod_muc_rtbl_bare_hash;
 	end
 	if not occupant.mod_muc_rtbl_host_hash then
-		host_hash = sha256(jid.host(event.stanza.attr.from), true);
+		host_hash = sha256(jid.host(occupant.bare_jid), true);
 		event.occupant.mod_muc_rtbl_host_hash = host_hash;
 	else
 		host_hash = event.occupant.mod_muc_rtbl_host_hash;