aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_http.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-07-06 00:14:47 +0200
committerKim Alvefur <zash@zash.se>2018-07-06 00:14:47 +0200
commitc969c2c90c310aa58e8fc1e31be04b46bc9b8867 (patch)
treedbfe6e3ff9ce7683f8daee0bfb0c70979316fc1f /plugins/mod_http.lua
parent6047a301a2a4a9cb97ce9f6faf345df6a3867b0a (diff)
downloadprosody-c969c2c90c310aa58e8fc1e31be04b46bc9b8867.tar.gz
prosody-c969c2c90c310aa58e8fc1e31be04b46bc9b8867.zip
mod_http: Rename loop variable to avoid name clash [luacheck]
Diffstat (limited to 'plugins/mod_http.lua')
-rw-r--r--plugins/mod_http.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_http.lua b/plugins/mod_http.lua
index 99435e4e..9bb6a817 100644
--- a/plugins/mod_http.lua
+++ b/plugins/mod_http.lua
@@ -137,8 +137,8 @@ function module.add_host(module)
local function http_app_removed(event)
local app_handlers = apps[event.item.name];
apps[event.item.name] = nil;
- for event, handler in pairs(app_handlers) do
- module:unhook_object_event(server, event, handler);
+ for event_name, handler in pairs(app_handlers) do
+ module:unhook_object_event(server, event_name, handler);
end
end