Changeset

4081:3c18d8deeb38

mod_invites: Fix potential traceback when invalid token used (from Snikket)
author Matthew Wild <mwild1@gmail.com>
date Mon, 07 Sep 2020 13:04:01 +0100
parents 4080:14a3f5223074
children 4082:6cdbca89b8be
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 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