# HG changeset patch # User Kim Alvefur # Date 1624289477 -7200 # Node ID 04abe65b80679ec557fbd64d5f8dfd5f1ef8d47b # Parent 1b7669c49459487453076e9fecaecba5988eb62d mod_storage_sql: Fix for move of yes/no function (Thanks Kasim) diff -r 1b7669c49459 -r 04abe65b8067 plugins/mod_storage_sql.lua --- a/plugins/mod_storage_sql.lua Mon Jun 21 13:45:44 2021 +0200 +++ b/plugins/mod_storage_sql.lua Mon Jun 21 17:31:17 2021 +0200 @@ -856,7 +856,7 @@ 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 @@ 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