comparison 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
comparison
equal deleted inserted replaced
782:2d83708ea901 783:d039a8dace3b
56 origin.send(st.error_reply(stanza, "wait", "internal-server-error")) -- bouncing request. 56 origin.send(st.error_reply(stanza, "wait", "internal-server-error")) -- bouncing request.
57 return true 57 return true
58 end 58 end
59 end 59 end
60 end 60 end
61 elseif inst_text and oob then 61 elseif inst_text and url and oob then
62 if not url:match("^%w+[:].*$") then 62 if not url:match("^%w+[:].*$") then
63 module:log("error", "Please check your configuration, the URL specified is not valid.") 63 module:log("error", "Please check your configuration, the URL specified is not valid.")
64 origin.send(st.error_reply(stanza, "wait", "internal-server-error")) -- bouncing request. 64 origin.send(st.error_reply(stanza, "wait", "internal-server-error")) -- bouncing request.
65 end 65 end
66 end 66 end