aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-06-21 17:31:17 +0200
committerKim Alvefur <zash@zash.se>2021-06-21 17:31:17 +0200
commitd4c3f44ade58c4806e4abad87d08cf86ba92e614 (patch)
tree946fe94e1c2869f9dc15a9b3821648710c5ab490 /plugins
parentab7abe3f8c6d5183ab7aa2cf9a5af37754282952 (diff)
downloadprosody-d4c3f44ade58c4806e4abad87d08cf86ba92e614.tar.gz
prosody-d4c3f44ade58c4806e4abad87d08cf86ba92e614.zip
mod_storage_sql: Fix for move of yes/no function (Thanks Kasim)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_storage_sql.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua
index 6bd094e5..e49b7ccd 100644
--- a/plugins/mod_storage_sql.lua
+++ b/plugins/mod_storage_sql.lua
@@ -856,7 +856,7 @@ end
function module.command(arg)
local config = require "core.configmanager";
- local prosodyctl = require "util.prosodyctl";
+ local hi = require "util.human.io";
local command = table.remove(arg, 1);
if command == "upgrade" then
-- We need to find every unique dburi in the config
@@ -871,7 +871,7 @@ function module.command(arg)
end
print("");
print("Ensure you have working backups of the above databases before continuing! ");
- if not prosodyctl.show_yesno("Continue with the database upgrade? [yN]") then
+ if not hi.show_yesno("Continue with the database upgrade? [yN]") then
print("Ok, no upgrade. But you do have backups, don't you? ...don't you?? :-)");
return;
end