comparison plugins/mod_invites.lua @ 13520:662dfff658a0

Merge 0.12->trunk
author Kim Alvefur <zash@zash.se>
date Fri, 30 Aug 2024 18:16:01 +0200
parents 992389af2372 0b6af170617b
children 9cd5b3484a1d
comparison
equal deleted inserted replaced
13517:4bf889e94831 13520:662dfff658a0
191 username = username; 191 username = username;
192 inviter = inviter; 192 inviter = inviter;
193 type = token_info and token_info.type or "roster"; 193 type = token_info and token_info.type or "roster";
194 uri = token_info and token_info.uri or get_uri("roster", username.."@"..module.host, token); 194 uri = token_info and token_info.uri or get_uri("roster", username.."@"..module.host, token);
195 additional_data = token_info and token_info.additional_data or nil; 195 additional_data = token_info and token_info.additional_data or nil;
196 reusable = token_info.reusable; 196 reusable = token_info and token_info.reusable or false;
197 }, valid_invite_mt); 197 }, valid_invite_mt);
198 end 198 end
199 199
200 function use(token) --luacheck: ignore 131/use 200 function use(token) --luacheck: ignore 131/use
201 local invite = get(token); 201 local invite = get(token);