modulemanager: Don't require xmlns to be non-nil

Sat, 06 Jun 2009 17:17:16 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sat, 06 Jun 2009 17:17:16 +0100
changeset 1321
0698d0d39b35
parent 1320
9c736b993e07
child 1322
33d103b0283f

modulemanager: Don't require xmlns to be non-nil

core/modulemanager.lua file | annotate | diff | comparison | revisions
--- a/core/modulemanager.lua	Sat Jun 06 17:15:26 2009 +0100
+++ b/core/modulemanager.lua	Sat Jun 06 17:17:16 2009 +0100
@@ -377,7 +377,7 @@
 	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

mercurial