mod_register_redirect: Fix usage of incorrect variable name (thanks iron)
authorMatthew Wild <mwild1@gmail.com>
Sun, 05 Aug 2012 13:55:29 +0100
changeset 780 055b9ea7bd68
parent 779 36044b77b6c2
child 781 ab40d1650688
mod_register_redirect: Fix usage of incorrect variable name (thanks iron)
mod_register_redirect/mod_register_redirect.lua
--- a/mod_register_redirect/mod_register_redirect.lua	Sun Aug 05 09:07:48 2012 +0700
+++ b/mod_register_redirect/mod_register_redirect.lua	Sun Aug 05 13:55:29 2012 +0100
@@ -58,7 +58,7 @@
 				end
 			end
 		end
-	elseif text and oob then
+	elseif instt_text 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.