Software /
code /
prosody
Changeset
11625:04abe65b8067
mod_storage_sql: Fix for move of yes/no function (Thanks Kasim)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 21 Jun 2021 17:31:17 +0200 |
parents | 11624:1b7669c49459 |
children | 11626:ef62d29c8fdc |
files | plugins/mod_storage_sql.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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