aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-06-06 17:17:16 +0100
committerMatthew Wild <mwild1@gmail.com>2009-06-06 17:17:16 +0100
commit78259b97be85a222f040dda7d3e27f719e3b467d (patch)
tree86d3cdc8d5042c745a75ec4b04f612fcd7828626 /core
parent650013e7ec39a3c08ba6f4a2e36076d5d91d12a1 (diff)
downloadprosody-78259b97be85a222f040dda7d3e27f719e3b467d.tar.gz
prosody-78259b97be85a222f040dda7d3e27f719e3b467d.zip
modulemanager: Don't require xmlns to be non-nil
Diffstat (limited to 'core')
-rw-r--r--core/modulemanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index 9bcd64e4..187e4d6e 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -377,7 +377,7 @@ function api:hook_stanza(xmlns, name, handler, priority)
if not handler and type(name) == "function" then
-- If only 2 options then they specified no xmlns
xmlns, name, handler, priority = nil, xmlns, name, handler;
- elseif not (handler and name and xmlns) then
+ elseif not (handler and name) then
self:log("warn", "Error: Insufficient parameters to module:hook_stanza()");
return;
end