Software / code / prosody-modules
Comparison
mod_admin_web/admin_web/mod_admin_web.lua @ 3550:8079e9c6d419
mod_admin_web: Ignore shadowed 'ok' variable, nothing to worry about [luacheck]
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 05 Apr 2019 19:02:17 +0200 |
| parent | 3549:b059a3fb2a58 |
| child | 3567:179424d557f2 |
comparison
equal
deleted
inserted
replaced
| 3549:b059a3fb2a58 | 3550:8079e9c6d419 |
|---|---|
| 253 end | 253 end |
| 254 end | 254 end |
| 255 | 255 |
| 256 -- Register adminsub handler | 256 -- Register adminsub handler |
| 257 module:hook("iq/host/http://prosody.im/adminsub:adminsub", function(event) | 257 module:hook("iq/host/http://prosody.im/adminsub:adminsub", function(event) |
| 258 -- luacheck: ignore 431/ok | |
| 258 local origin, stanza = event.origin, event.stanza; | 259 local origin, stanza = event.origin, event.stanza; |
| 259 local adminsub = stanza.tags[1]; | 260 local adminsub = stanza.tags[1]; |
| 260 local action = adminsub.tags[1]; | 261 local action = adminsub.tags[1]; |
| 261 local reply; | 262 local reply; |
| 262 if action.name == "subscribe" then | 263 if action.name == "subscribe" then |