Software /
code /
prosody
Comparison
core/modulemanager.lua @ 197:19c57a24afa1
Fix for previous commit
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 02 Nov 2008 01:28:27 +0000 |
parent | 196:ebe23269b377 |
child | 198:e4755408d40b |
comparison
equal
deleted
inserted
replaced
196:ebe23269b377 | 197:19c57a24afa1 |
---|---|
36 for _, origin_type in ipairs(origin_type) do | 36 for _, origin_type in ipairs(origin_type) do |
37 _add_iq_handler(getfenv(2), origin_type, xmlns, handler); | 37 _add_iq_handler(getfenv(2), origin_type, xmlns, handler); |
38 end | 38 end |
39 return; | 39 return; |
40 end | 40 end |
41 _add_iq_handler(getfenv(2), origin_type, xmlns, handler); | 41 _add_iq_handler(getfenv(2).module, origin_type, xmlns, handler); |
42 end | 42 end |
43 | 43 |
44 local function _add_handler(module, origin_type, tag, xmlns, handler) | 44 local function _add_handler(module, origin_type, tag, xmlns, handler) |
45 handlers[origin_type] = handlers[origin_type] or {}; | 45 handlers[origin_type] = handlers[origin_type] or {}; |
46 if not handlers[origin_type][tag] then | 46 if not handlers[origin_type][tag] then |