Changeset

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 782:2d83708ea901
children 784:c6f1427da79d
files mod_register_redirect/mod_register_redirect.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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.