Mercurial > prosody-modules
comparison mod_register_web/mod_register_web.lua @ 3372:866167118d23
mod_register_web: Add soft dependency on mod_register_limits (0.11+)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 07 Nov 2018 17:49:27 +0100 |
parents | d631fd9a3300 |
children | f9a93d7b6c50 |
comparison
equal
deleted
inserted
replaced
3371:68842409f4e7 | 3372:866167118d23 |
---|---|
4 local datamanager = require "util.datamanager"; | 4 local datamanager = require "util.datamanager"; |
5 local http = require "net.http"; | 5 local http = require "net.http"; |
6 local path_sep = package.config:sub(1,1); | 6 local path_sep = package.config:sub(1,1); |
7 local json = require "util.json".decode; | 7 local json = require "util.json".decode; |
8 local t_concat = table.concat; | 8 local t_concat = table.concat; |
9 | |
10 pcall(function () | |
11 module:depends("register_limits"); | |
12 end); | |
9 | 13 |
10 module:depends"http"; | 14 module:depends"http"; |
11 | 15 |
12 local extra_fields = { | 16 local extra_fields = { |
13 nick = true; name = true; first = true; last = true; email = true; | 17 nick = true; name = true; first = true; last = true; email = true; |