comparison mod_invites/mod_invites.lua @ 4080:14a3f5223074

mod_invites: Whitespace (from Snikket)
author Matthew Wild <mwild1@gmail.com>
date Mon, 07 Sep 2020 13:03:08 +0100
parents b68b917e568f
children 3c18d8deeb38
comparison
equal deleted inserted replaced
4079:b68b917e568f 4080:14a3f5223074
72 -- Create invitation to become a contact of a local user 72 -- Create invitation to become a contact of a local user
73 function create_contact(username, allow_registration, additional_data) --luacheck: ignore 131/create_contact 73 function create_contact(username, allow_registration, additional_data) --luacheck: ignore 131/create_contact
74 return create_invite("roster", username.."@"..module.host, allow_registration, additional_data); 74 return create_invite("roster", username.."@"..module.host, allow_registration, additional_data);
75 end 75 end
76 76
77
77 local valid_invite_methods = {}; 78 local valid_invite_methods = {};
78 local valid_invite_mt = { __index = valid_invite_methods }; 79 local valid_invite_mt = { __index = valid_invite_methods };
79 80
80 function valid_invite_methods:use() 81 function valid_invite_methods:use()
81 if self.username then 82 if self.username then