aboutsummaryrefslogtreecommitdiffstats
path: root/core/modulemanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-02 01:30:36 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-02 01:30:36 +0000
commit130049e2310b5fb16de7ddf7e2555f982cc4dae6 (patch)
treef52690435acdae03f8edb983461c493dc055cd48 /core/modulemanager.lua
parentdeb12dc32b16b85d73f7c101711bc60f74d83aac (diff)
downloadprosody-130049e2310b5fb16de7ddf7e2555f982cc4dae6.tar.gz
prosody-130049e2310b5fb16de7ddf7e2555f982cc4dae6.zip
Fix for previous commit (again)
Diffstat (limited to 'core/modulemanager.lua')
-rw-r--r--core/modulemanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index 3a34bfbd..bf5d4c2f 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -34,7 +34,7 @@ function modulehelpers.add_iq_handler(origin_type, xmlns, handler)
if not (origin_type and handler and xmlns) then return false; end
if type(origin_type) == "table" then
for _, origin_type in ipairs(origin_type) do
- _add_iq_handler(getfenv(2), origin_type, xmlns, handler);
+ _add_iq_handler(getfenv(2).module, origin_type, xmlns, handler);
end
return;
end