# HG changeset patch # User Matthew Wild # Date 1225589307 0 # Node ID 19c57a24afa1ba7a20275ebdf3158cbb5f3ea948 # Parent ebe23269b377a51c5c73ff02ccfb09c112ccfe8f Fix for previous commit diff -r ebe23269b377 -r 19c57a24afa1 core/modulemanager.lua --- a/core/modulemanager.lua Sun Nov 02 01:26:37 2008 +0000 +++ b/core/modulemanager.lua Sun Nov 02 01:28:27 2008 +0000 @@ -38,7 +38,7 @@ 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)