Comparison

core/modulemanager.lua @ 1708:ac792c01dfcb

modulemanager: Removed unnecessary code in the unload function
author Waqas Hussain <waqas20@gmail.com>
date Tue, 18 Aug 2009 12:54:16 +0500
parent 1707:c55aa091f42a
child 1709:51cf905414a2
comparison
equal deleted inserted replaced
1707:c55aa091f42a 1708:ac792c01dfcb
169 if (not ok) and err then 169 if (not ok) and err then
170 log("warn", "Non-fatal error unloading module '%s' on '%s': %s", name, host, err); 170 log("warn", "Non-fatal error unloading module '%s' on '%s': %s", name, host, err);
171 end 171 end
172 end 172 end
173 modulemap[host][name] = nil; 173 modulemap[host][name] = nil;
174 features_table:remove(host, name);
175 identities_table:remove(host, name);
176 local params = handler_table:get(host, name); -- , {module.host, origin_type, tag, xmlns} 174 local params = handler_table:get(host, name); -- , {module.host, origin_type, tag, xmlns}
177 for _, param in pairs(params or NULL) do 175 for _, param in pairs(params or NULL) do
178 local handlers = stanza_handlers:get(param[1], param[2], param[3], param[4]); 176 local handlers = stanza_handlers:get(param[1], param[2], param[3], param[4]);
179 if handlers then 177 if handlers then
180 handler_info[handlers[1]] = nil; 178 handler_info[handlers[1]] = nil;