Mercurial > prosody-modules
comparison mod_http_upload/mod_http_upload.lua @ 3340:6081cbfd1220
mod_http_upload: Abort and throw error in case of failure to iterate over users
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 27 Sep 2018 20:03:10 +0200 |
parents | babb584e24a2 |
children | 1e1dbd7e5b6c |
comparison
equal
deleted
inserted
replaced
3339:babb584e24a2 | 3340:6081cbfd1220 |
---|---|
332 for i = 2, #args do | 332 for i = 2, #args do |
333 local user, host = split(args[i]); | 333 local user, host = split(args[i]); |
334 if user then | 334 if user then |
335 assert(expire(user, host)); | 335 assert(expire(user, host)); |
336 else | 336 else |
337 for user in datamanager.users(host, module.name, "list") do | 337 for user in assert(datamanager.users(host, module.name, "list")) do |
338 expire(user, host); | 338 expire(user, host); |
339 end | 339 end |
340 end | 340 end |
341 end | 341 end |
342 end | 342 end |