Software / code / prosody-modules
Changeset
5976:8ac59766ece1
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 | 5975:22effe87fed2 |
| children | 5977:97a9f939d472 |
| files | mod_invites/mod_invites.lua |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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