mod_invite: Remove unused arguments [luacheck]

Tue, 14 Mar 2017 04:19:26 +0100

author
Kim Alvefur <zash@zash.se>
date
Tue, 14 Mar 2017 04:19:26 +0100
changeset 2614
a6e97031972c
parent 2613
2103135f1851
child 2615
efb69a260723

mod_invite: Remove unused arguments [luacheck]

mod_invite/mod_invite.lua file | annotate | diff | comparison | revisions
--- a/mod_invite/mod_invite.lua	Tue Mar 14 04:19:06 2017 +0100
+++ b/mod_invite/mod_invite.lua	Tue Mar 14 04:19:26 2017 +0100
@@ -28,7 +28,7 @@
 		end)
 end
 
-function generate_page(event, display_options)
+function generate_page(event)
 	local request, response = event.request, event.response;
 
 	local tokens = invite_storage:get() or {};
@@ -58,7 +58,7 @@
 	rostermanager.process_inbound_subscription_approval(user2, module.host, user1_jid);
 end
 
-function handle_form(event, display_options)
+function handle_form(event)
 	local request, response = event.request, event.response;
 	local form_data = http_formdecode(request.body);
 	local user, password, token = form_data["user"], form_data["password"], form_data["token"];
@@ -125,7 +125,7 @@
 	};
 });
 
-function invite_command_handler(self, data, state)
+function invite_command_handler(_, data)
 	local uuid = uuid_new();
 
 	local user, host = jid_split(data.from);

mercurial