From deb12dc32b16b85d73f7c101711bc60f74d83aac Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 2 Nov 2008 01:28:27 +0000 Subject: Fix for previous commit --- core/modulemanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/modulemanager.lua b/core/modulemanager.lua index 3be6490f..3a34bfbd 100644 --- a/core/modulemanager.lua +++ b/core/modulemanager.lua @@ -38,7 +38,7 @@ function modulehelpers.add_iq_handler(origin_type, xmlns, handler) end return; end - _add_iq_handler(getfenv(2), origin_type, xmlns, handler); + _add_iq_handler(getfenv(2).module, origin_type, xmlns, handler); end local function _add_handler(module, origin_type, tag, xmlns, handler) -- cgit v1.2.3