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 |