From 9cf9b9f63a1283c8019497706d1abd6ec301f2f8 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 28 May 2016 13:10:40 +0200 Subject: prosodyctl: Fix typo (thanks av6) --- prosodyctl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prosodyctl b/prosodyctl index c8366faf..8ada3b9b 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 -- cgit v1.2.3 From 45079c02ef1f4edfca446c08a916c61fbf7af9df Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 29 May 2016 15:57:03 +0200 Subject: util.dataforms: Fix including default value for list-single when given as field.value[].default --- util/dataforms.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3