Comparison

core/modulemanager.lua @ 577:22f54a04471f

Fix add_event_hook in module API
author Matthew Wild <mwild1@gmail.com>
date Sat, 06 Dec 2008 19:51:10 +0000
parent 573:f6555ebf84ec
child 579:81e68e5afce2
comparison
equal deleted inserted replaced
576:c8442d9f02a5 577:22f54a04471f
194 return true; 194 return true;
195 end 195 end
196 end); 196 end);
197 end 197 end
198 198
199 api.add_event_hook = eventmanager.add_event_hook; 199 function api:add_event_hook (...) return eventmanager.add_event_hook(...); end
200 200
201 local function _add_handler(module, origin_type, tag, xmlns, handler) 201 local function _add_handler(module, origin_type, tag, xmlns, handler)
202 local handlers = stanza_handlers[module.host]; 202 local handlers = stanza_handlers[module.host];
203 handlers[origin_type] = handlers[origin_type] or {}; 203 handlers[origin_type] = handlers[origin_type] or {};
204 if not handlers[origin_type][tag] then 204 if not handlers[origin_type][tag] then