comparison mod_invite/mod_invite.lua @ 3549:b059a3fb2a58

Update modules using mod_http_files to serve files for change in Prosody trunk See commits in Prosody: f1594893998f afc48785f738 a39f3681d685 c93fdec624c7
author Kim Alvefur <zash@zash.se>
date Fri, 05 Apr 2019 18:57:51 +0200
parents 5911030a1a66
children 5370bc374c83
comparison
equal deleted inserted replaced
3548:8a15a9b13881 3549:b059a3fb2a58
10 local tostring = tostring; 10 local tostring = tostring;
11 11
12 local invite_storage = module:open_store(); 12 local invite_storage = module:open_store();
13 local inviter_storage = module:open_store("inviter"); 13 local inviter_storage = module:open_store("inviter");
14 14
15 local serve = module:depends"http_files".serve; 15 local serve;
16 if not pcall(function ()
17 local http_files = require "net.http.files";
18 serve = http_files.serve;
19 end) then
20 serve = module:depends"http_files".serve;
21 end
16 22
17 module:depends"adhoc"; 23 module:depends"adhoc";
18 module:depends"http"; 24 module:depends"http";
19 25
20 local function apply_template(template, args) 26 local function apply_template(template, args)