# HG changeset patch # User Emmanuel Gil Peyrot # Date 1722456378 -7200 # Node ID 8ac59766ece16ff36344283c05fbe6481946ef0a # Parent 22effe87fed20122816771c0214466a61cc57340 mod_invites: Fix traceback when token_info isn’t set diff -r 22effe87fed2 -r 8ac59766ece1 mod_invites/mod_invites.lua --- a/mod_invites/mod_invites.lua Mon Jul 29 23:07:09 2024 +0200 +++ b/mod_invites/mod_invites.lua Wed Jul 31 22:06:18 2024 +0200 @@ -191,7 +191,7 @@ type = token_info and token_info.type or "roster"; uri = token_info and token_info.uri or get_uri("roster", username.."@"..module.host, token); additional_data = token_info and token_info.additional_data or nil; - reusable = token_info.reusable; + reusable = token_info and token_info.reusable or false; }, valid_invite_mt); end