Mercurial > prosody-modules
comparison mod_register_redirect/mod_register_redirect.lua @ 441:bfc8bc7d77f3
mod_register_redirect: removed invalid character from code (why you do these things dear term...?)
author | Marco Cirillo <maranda@lightwitch.org> |
---|---|
date | Thu, 22 Sep 2011 15:12:55 +0000 |
parents | 9a71493368de |
children | 761b7e1bb7ab |
comparison
equal
deleted
inserted
replaced
440:9a71493368de | 441:bfc8bc7d77f3 |
---|---|
26 if url:match("^(%w+)[:].*$") == "http" or url:match("^(%w+)[:].*$") == "https" then | 26 if url:match("^(%w+)[:].*$") == "http" or url:match("^(%w+)[:].*$") == "https" then |
27 inst_text = "Please visit "..url.." to register an account on this server." | 27 inst_text = "Please visit "..url.." to register an account on this server." |
28 elseif url:match("^(%w+)[:].*$") == "mailto" then | 28 elseif url:match("^(%w+)[:].*$") == "mailto" then |
29 inst_text = "Please send an e-mail at "..url:match("^%w+[:](.*)$").." to register an account on this server." | 29 inst_text = "Please send an e-mail at "..url:match("^%w+[:](.*)$").." to register an account on this server." |
30 elseif url:match("^(%w+)[:].*$") == "xmpp" then | 30 elseif url:match("^(%w+)[:].*$") == "xmpp" then |
31 inst_text = "Please contact "..module:get_host().." server administrator via xmpp to register an account on this server at: "..url:match("^%wÃ+[:](.*)$") | 31 inst_text = "Please contact "..module:get_host().." server administrator via xmpp to register an account on this server at: "..url:match("^%w+[:](.*)$") |
32 else | 32 else |
33 module:log("error", "This module supports only http/https, mailto or xmpp as URL formats.") | 33 module:log("error", "This module supports only http/https, mailto or xmpp as URL formats.") |
34 module:log("error", "If you want to use personalized instructions without an Out-Of-Band method,") | 34 module:log("error", "If you want to use personalized instructions without an Out-Of-Band method,") |
35 module:log("error", "specify: register_oob = false; -- in your configuration along your banner string (register_text).") | 35 module:log("error", "specify: register_oob = false; -- in your configuration along your banner string (register_text).") |
36 origin.send(st.error_reply(stanza, "wait", "internal-server-error")); return true -- bouncing request. | 36 origin.send(st.error_reply(stanza, "wait", "internal-server-error")); return true -- bouncing request. |