# HG changeset patch # User Matthew Wild # Date 1599480241 -3600 # Node ID 3c18d8deeb3855a70ad46f4732df84a40b5c086e # Parent 14a3f5223074c2a4eee2d9245a81e712509ea47b mod_invites: Fix potential traceback when invalid token used (from Snikket) diff -r 14a3f5223074 -r 3c18d8deeb38 mod_invites/mod_invites.lua --- a/mod_invites/mod_invites.lua Mon Sep 07 13:03:08 2020 +0100 +++ b/mod_invites/mod_invites.lua Mon Sep 07 13:04:01 2020 +0100 @@ -110,7 +110,7 @@ valid_until = token_storage:get(username, token); else -- token being used for account creation valid_until = token_info and token_info.expires; - if token_info.type == "roster" then + if token_info and token_info.type == "roster" then username = jid_node(token_info.jid); inviter = username; end