diff options
author | Matthew Wild <mwild1@gmail.com> | 2023-11-29 17:50:33 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2023-11-29 17:50:33 +0000 |
commit | 34b4ec02fee1ab3d732a8ddc8e0155685a6340bb (patch) | |
tree | b6fabcebb46c155e29eb54e658b0c903c6f9e9a4 /plugins | |
parent | fb240ee25cefdf42dac3152b79bf7c23c0f4d658 (diff) | |
download | prosody-34b4ec02fee1ab3d732a8ddc8e0155685a6340bb.tar.gz prosody-34b4ec02fee1ab3d732a8ddc8e0155685a6340bb.zip |
mod_invites: Fix linter issues
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_invites.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/mod_invites.lua b/plugins/mod_invites.lua index d31e8bfc..04265070 100644 --- a/plugins/mod_invites.lua +++ b/plugins/mod_invites.lua @@ -210,8 +210,8 @@ module:add_item("shell-command", { 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 @@ module:add_item("shell-command", { 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; |