Changeset

13355:a6c8a50cdfb5

mod_invites: Fix linter issues
author Matthew Wild <mwild1@gmail.com>
date Wed, 29 Nov 2023 17:50:33 +0000
parents 13354:83f3076965f6
children 13356:bbbda8819331
files plugins/mod_invites.lua
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_invites.lua	Wed Nov 29 17:49:20 2023 +0000
+++ b/plugins/mod_invites.lua	Wed Nov 29 17:50:33 2023 +0000
@@ -210,8 +210,8 @@
 	args = { { name = "user_jid", type = "string" } };
 	host_selector = "user_jid";
 
-	handler = function (self, user_jid)
-		local username, host = jid_split(user_jid);
+	handler = function (self, user_jid) --luacheck: ignore 212/self
+		local username = jid_split(user_jid);
 		local invite, err = create_account(username);
 		if not invite then return nil, err; end
 		return true, invite.landing_page or invite.uri;
@@ -226,8 +226,8 @@
 	args = { { name = "user_jid", type = "string" }, { name = "allow_registration" } };
 	host_selector = "user_jid";
 
-	handler = function (self, user_jid, allow_registration)
-		local username, host = jid_split(user_jid);
+	handler = function (self, user_jid, allow_registration) --luacheck: ignore 212/self
+		local username = jid_split(user_jid);
 		local invite, err = create_contact(username, allow_registration);
 		if not invite then return nil, err; end
 		return true, invite.landing_page or invite.uri;