Software / code / prosody
Changeset
13519:0b6af170617b 0.12
mod_invites: Fix traceback when token_info isn’t set
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
|---|---|
| date | Wed, 31 Jul 2024 22:06:18 +0200 |
| parents | 13518:0ef9c26d9d96 |
| children | 13520:662dfff658a0 13528:c228f1ffb7b3 |
| files | plugins/mod_invites.lua |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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