# HG changeset patch # User Emmanuel Gil Peyrot # Date 1722456378 -7200 # Node ID 0b6af170617be5f138819ac92553b6780c915816 # Parent 0ef9c26d9d965162c3410eb280dfb945b426114a mod_invites: Fix traceback when token_info isn’t set diff -r 0ef9c26d9d96 -r 0b6af170617b plugins/mod_invites.lua --- a/plugins/mod_invites.lua Fri Aug 30 17:41:40 2024 +0200 +++ b/plugins/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