Diff

mod_muc_rtbl/mod_muc_rtbl.lua @ 5177:f6b5f04d4b28

mod_muc_rtbl: fix more incorrect more references to "event"
author Jonas Schäfer <jonas@wielicki.name>
date Wed, 22 Feb 2023 13:39:01 +0100
parent 5176:4791e0412ff3
child 5274:8cfbcbc0fb89
line wrap: on
line diff
--- 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