Software /
code /
prosody-modules
Comparison
mod_firewall/mod_firewall.lua @ 2517:3990b1bca308
mod_firewall: Fix circular dependency check
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 19 Feb 2017 21:06:08 +0000 |
parent | 2464:01babf1caa4a |
child | 2518:0e1054c19f9d |
comparison
equal
deleted
inserted
replaced
2516:248054199d0f | 2517:3990b1bca308 |
---|---|
151 local dep_info = available_deps[dep]; | 151 local dep_info = available_deps[dep]; |
152 if not dep_info then | 152 if not dep_info then |
153 module:log("error", "Dependency not found: %s", dep); | 153 module:log("error", "Dependency not found: %s", dep); |
154 return; | 154 return; |
155 end | 155 end |
156 if code.included_deps[dep] then | 156 if code.included_deps[dep] ~= nil then |
157 if code.included_deps[dep] ~= true then | 157 if code.included_deps[dep] ~= true then |
158 module:log("error", "Circular dependency on %s", dep); | 158 module:log("error", "Circular dependency on %s", dep); |
159 end | 159 end |
160 return; | 160 return; |
161 end | 161 end |