aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2024-07-31 22:06:18 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2024-07-31 22:06:18 +0200
commita719f5897c2a488add6dcd63edc47e32de7e6c73 (patch)
tree08a86991ba8defb3feb9910b18229ec0e6134495
parentf7d0caa5ac8bc4d95bede90b42dd8f794429fc8f (diff)
downloadprosody-a719f5897c2a488add6dcd63edc47e32de7e6c73.tar.gz
prosody-a719f5897c2a488add6dcd63edc47e32de7e6c73.zip
mod_invites: Fix traceback when token_info isn’t set
-rw-r--r--plugins/mod_invites.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_invites.lua b/plugins/mod_invites.lua
index 881b851e..88690f7e 100644
--- a/plugins/mod_invites.lua
+++ b/plugins/mod_invites.lua
@@ -191,7 +191,7 @@ function get(token, username)
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