Software / code / prosody
Comparison
core/modulemanager.lua @ 198:e4755408d40b
Fix for previous commit (again)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sun, 02 Nov 2008 01:30:36 +0000 |
| parent | 197:19c57a24afa1 |
| child | 218:1263896ab2f1 |
comparison
equal
deleted
inserted
replaced
| 197:19c57a24afa1 | 198:e4755408d40b |
|---|---|
| 32 | 32 |
| 33 function modulehelpers.add_iq_handler(origin_type, xmlns, handler) | 33 function modulehelpers.add_iq_handler(origin_type, xmlns, handler) |
| 34 if not (origin_type and handler and xmlns) then return false; end | 34 if not (origin_type and handler and xmlns) then return false; end |
| 35 if type(origin_type) == "table" then | 35 if type(origin_type) == "table" then |
| 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).module, origin_type, xmlns, handler); |
| 38 end | 38 end |
| 39 return; | 39 return; |
| 40 end | 40 end |
| 41 _add_iq_handler(getfenv(2).module, origin_type, xmlns, handler); | 41 _add_iq_handler(getfenv(2).module, origin_type, xmlns, handler); |
| 42 end | 42 end |