From 78259b97be85a222f040dda7d3e27f719e3b467d Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 6 Jun 2009 17:17:16 +0100 Subject: modulemanager: Don't require xmlns to be non-nil --- core/modulemanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/modulemanager.lua') 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 -- cgit v1.2.3