Mercurial > prosody-modules
comparison 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 |
| parents | 4791e0412ff3 |
| children | 8cfbcbc0fb89 |
comparison
equal
deleted
inserted
replaced
| 5176:4791e0412ff3 | 5177:f6b5f04d4b28 |
|---|---|
| 99 else | 99 else |
| 100 bare_hash = occupant.mod_muc_rtbl_bare_hash; | 100 bare_hash = occupant.mod_muc_rtbl_bare_hash; |
| 101 end | 101 end |
| 102 if not occupant.mod_muc_rtbl_host_hash then | 102 if not occupant.mod_muc_rtbl_host_hash then |
| 103 host_hash = sha256(jid.host(occupant.bare_jid), true); | 103 host_hash = sha256(jid.host(occupant.bare_jid), true); |
| 104 event.occupant.mod_muc_rtbl_host_hash = host_hash; | 104 occupant.mod_muc_rtbl_host_hash = host_hash; |
| 105 else | 105 else |
| 106 host_hash = event.occupant.mod_muc_rtbl_host_hash; | 106 host_hash = occupant.mod_muc_rtbl_host_hash; |
| 107 end | 107 end |
| 108 return bare_hash, host_hash | 108 return bare_hash, host_hash |
| 109 end | 109 end |
| 110 | 110 |
| 111 module:hook("muc-occupant-pre-join", function (event) | 111 module:hook("muc-occupant-pre-join", function (event) |
