diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-03-04 22:15:46 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-03-04 22:15:46 +0500 |
commit | 31bd01ae390739c81f73ea88a9717a3c62107f69 (patch) | |
tree | 2f9d93b06b3638e09788d93753f4c44bea604c72 /core/modulemanager.lua | |
parent | a59ff06b079d87a5204194f5614369de762d4912 (diff) | |
download | prosody-31bd01ae390739c81f73ea88a9717a3c62107f69.tar.gz prosody-31bd01ae390739c81f73ea88a9717a3c62107f69.zip |
Allow global modules to hook stanza handlers
Diffstat (limited to 'core/modulemanager.lua')
-rw-r--r-- | core/modulemanager.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua index 5afe3144..5bbff0ad 100644 --- a/core/modulemanager.lua +++ b/core/modulemanager.lua @@ -212,6 +212,7 @@ function handle_stanza(host, origin, stanza) end end local handlers = stanza_handlers:get(host, origin_type, name, xmlns); + if not handlers then handlers = stanza_handlers:get("*", origin_type, name, xmlns); end if handlers then log("debug", "Passing stanza to mod_%s", handler_info[handlers[1]].name); (handlers[1])(origin, stanza); |