comparison core/modulemanager.lua @ 1347:4eccafa3609f

Merge with waqas via albert!
author Matthew Wild <mwild1@gmail.com>
date Fri, 19 Jun 2009 17:32:01 +0100
parents e34f9455b779
children 857034905016
comparison
equal deleted inserted replaced
1345:35b5686d73ea 1347:4eccafa3609f
365 end); 365 end);
366 366
367 function api:add_feature(xmlns) 367 function api:add_feature(xmlns)
368 features_table:set(self.host, self.name, xmlns, true); 368 features_table:set(self.host, self.name, xmlns, true);
369 end 369 end
370 function api:add_identity(category, typ) 370 function api:add_identity(category, type)
371 identities_table:set(self.host, self.name, category.."\0"..typ, {category = category, typ = typ}); 371 identities_table:set(self.host, self.name, category.."\0"..type, {category = category, type = type});
372 end 372 end
373 373
374 local event_hook = function(host, mod_name, event_name, ...) 374 local event_hook = function(host, mod_name, event_name, ...)
375 if type((...)) == "table" and (...).host and (...).host ~= host then return; end 375 if type((...)) == "table" and (...).host and (...).host ~= host then return; end
376 for handler in pairs(event_hooks:get(host, mod_name, event_name) or NULL) do 376 for handler in pairs(event_hooks:get(host, mod_name, event_name) or NULL) do