Comparison

core/moduleapi.lua @ 5077:6c2c8bf36d22

moduleapi: Clarify comment
author Matthew Wild <mwild1@gmail.com>
date Fri, 03 Aug 2012 14:07:41 +0100
parent 5053:375ab71e4b37
child 5161:3275a9705ef3
comparison
equal deleted inserted replaced
5076:88fb94df9b18 5077:6c2c8bf36d22
123 end); 123 end);
124 end 124 end
125 local mod = modulemanager.get_module(self.host, name) or modulemanager.get_module("*", name); 125 local mod = modulemanager.get_module(self.host, name) or modulemanager.get_module("*", name);
126 if mod and mod.module.host == "*" and self.host ~= "*" 126 if mod and mod.module.host == "*" and self.host ~= "*"
127 and modulemanager.module_has_method(mod, "add_host") then 127 and modulemanager.module_has_method(mod, "add_host") then
128 mod = nil; -- This is a shared module, so we still want to load it on our host 128 mod = nil; -- Target is a shared module, so we still want to load it on our host
129 end 129 end
130 if not mod then 130 if not mod then
131 local err; 131 local err;
132 mod, err = modulemanager.load(self.host, name); 132 mod, err = modulemanager.load(self.host, name);
133 if not mod then 133 if not mod then