diff mod_register_redirect/mod_register_redirect.lua @ 783:d039a8dace3b

mod_register_redirect: fixed clunky if block (thanks Zash, mva).
author Marco Cirillo <maranda@lightwitch.org>
date Mon, 06 Aug 2012 14:42:48 +0000
parents ab40d1650688
children c6f1427da79d
line wrap: on
line diff
--- a/mod_register_redirect/mod_register_redirect.lua	Mon Aug 06 17:08:12 2012 +0700
+++ b/mod_register_redirect/mod_register_redirect.lua	Mon Aug 06 14:42:48 2012 +0000
@@ -58,7 +58,7 @@
 				end
 			end
 		end
-	elseif inst_text and oob then
+	elseif inst_text and url and oob then
 		if not url:match("^%w+[:].*$") then
 			module:log("error", "Please check your configuration, the URL specified is not valid.")
 			origin.send(st.error_reply(stanza, "wait", "internal-server-error")) -- bouncing request.