# HG changeset patch # User Kim Alvefur # Date 1541609367 -3600 # Node ID 866167118d232fcee81bbcf1fd267bc922ddc3ea # Parent 68842409f4e70df1159cdcd4a7d5c68e175d8abc mod_register_web: Add soft dependency on mod_register_limits (0.11+) diff -r 68842409f4e7 -r 866167118d23 mod_register_web/mod_register_web.lua --- a/mod_register_web/mod_register_web.lua Wed Nov 07 12:38:03 2018 +0000 +++ b/mod_register_web/mod_register_web.lua Wed Nov 07 17:49:27 2018 +0100 @@ -7,6 +7,10 @@ local json = require "util.json".decode; local t_concat = table.concat; +pcall(function () + module:depends("register_limits"); +end); + module:depends"http"; local extra_fields = {