Software /
code /
prosody
Comparison
plugins/mod_http.lua @ 8971:e59207c909c0
mod_http: Rename loop variable to avoid name clash [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 06 Jul 2018 00:14:47 +0200 |
parent | 8970:75c3b1bd9d7b |
child | 8972:0b254439d451 |
comparison
equal
deleted
inserted
replaced
8970:75c3b1bd9d7b | 8971:e59207c909c0 |
---|---|
135 end | 135 end |
136 | 136 |
137 local function http_app_removed(event) | 137 local function http_app_removed(event) |
138 local app_handlers = apps[event.item.name]; | 138 local app_handlers = apps[event.item.name]; |
139 apps[event.item.name] = nil; | 139 apps[event.item.name] = nil; |
140 for event, handler in pairs(app_handlers) do | 140 for event_name, handler in pairs(app_handlers) do |
141 module:unhook_object_event(server, event, handler); | 141 module:unhook_object_event(server, event_name, handler); |
142 end | 142 end |
143 end | 143 end |
144 | 144 |
145 module:handle_items("http-provider", http_app_added, http_app_removed); | 145 module:handle_items("http-provider", http_app_added, http_app_removed); |
146 | 146 |