aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-05-30 13:17:28 +0200
committerKim Alvefur <zash@zash.se>2016-05-30 13:17:28 +0200
commitfcca840db8d7c39253869f27fbca736da6c43909 (patch)
tree8725903a32a44843a489748ade1914fefe5681fb
parente8e531fa1d45b4b454abdac3a170cba16da02b86 (diff)
parent6b2c577b2097728507d23a6d2b2fa9207a22df9d (diff)
downloadprosody-fcca840db8d7c39253869f27fbca736da6c43909.tar.gz
prosody-fcca840db8d7c39253869f27fbca736da6c43909.zip
Merge 0.10->trunk
-rwxr-xr-xprosodyctl4
-rw-r--r--util/dataforms.lua2
2 files changed, 3 insertions, 3 deletions
diff --git a/prosodyctl b/prosodyctl
index e3bc6ffa..4a6ce44e 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -1261,13 +1261,13 @@ function commands.check(arg)
end
if config.get(host, "component_module") == nil
and not x509_verify_identity(host, "_xmpp-client", cert) then
- print(" Not vaild for client connections to "..host..".")
+ print(" Not valid for client connections to "..host..".")
cert_ok = false
end
if (not (config.get(host, "anonymous_login")
or config.get(host, "authentication") == "anonymous"))
and not x509_verify_identity(host, "_xmpp-server", cert) then
- print(" Not vaild for server-to-server connections to "..host..".")
+ print(" Not valid for server-to-server connections to "..host..".")
cert_ok = false
end
end
diff --git a/util/dataforms.lua b/util/dataforms.lua
index 685f3aaf..756f35a7 100644
--- a/util/dataforms.lua
+++ b/util/dataforms.lua
@@ -72,7 +72,7 @@ function form_t.form(layout, data, formtype)
for _, val in ipairs(field.options or value) do
if type(val) == "table" then
form:tag("option", { label = val.label }):tag("value"):text(val.value):up():up();
- if value == val.value or field.options and val.default and (not has_default) then
+ if value == val.value or val.default and (not has_default) then
form:tag("value"):text(val.value):up();
has_default = true;
end