changeset 4696 | 37232302dfb9 |
parent 4695 | 1f1dbf652b37 |
child 4697 | 59f53cf66573 |
--- a/mod_muc_require_tos/mod_muc_require_tos.lua Thu Sep 16 22:32:59 2021 +0200 +++ b/mod_muc_require_tos/mod_muc_require_tos.lua Thu Sep 16 22:47:52 2021 +0200 @@ -28,7 +28,7 @@ module:hook("muc-occupant-groupchat", function(event) local occupant = event.occupant; - if occupant.role ~= "visitor" then + if occupant == nil or occupant.role ~= "visitor" then return; end local origin = event.origin;