mod_muc_rtbl/mod_muc_rtbl.lua
changeset 5181 f6b5f04d4b28
parent 5180 4791e0412ff3
child 5278 8cfbcbc0fb89
--- a/mod_muc_rtbl/mod_muc_rtbl.lua	Wed Feb 22 13:35:03 2023 +0100
+++ b/mod_muc_rtbl/mod_muc_rtbl.lua	Wed Feb 22 13:39:01 2023 +0100
@@ -101,9 +101,9 @@
 	end
 	if not occupant.mod_muc_rtbl_host_hash then
 		host_hash = sha256(jid.host(occupant.bare_jid), true);
-		event.occupant.mod_muc_rtbl_host_hash = host_hash;
+		occupant.mod_muc_rtbl_host_hash = host_hash;
 	else
-		host_hash = event.occupant.mod_muc_rtbl_host_hash;
+		host_hash = occupant.mod_muc_rtbl_host_hash;
 	end
 	return bare_hash, host_hash
 end