aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2025-01-23 22:32:44 +0100
committerKim Alvefur <zash@zash.se>2025-01-23 22:32:44 +0100
commitedfe2fe98cb982bbf5391215b5050d9f67bababa (patch)
treebe323f624af936bc1e0a4e993906586995a5a483
parentc8134dd9a9dca28cfe3e59f9898018cf2130b0c5 (diff)
downloadprosody-edfe2fe98cb982bbf5391215b5050d9f67bababa.tar.gz
prosody-edfe2fe98cb982bbf5391215b5050d9f67bababa.zip
mod_storage_sql: Don't treat Enter or Ctrl-C as yes in upgrade command
It seems to imply that No is the default, so it shouldn't continue doing the Yes action unless you actually press Y
-rw-r--r--plugins/mod_storage_sql.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua
index 605904ab..fa0588b2 100644
--- a/plugins/mod_storage_sql.lua
+++ b/plugins/mod_storage_sql.lua
@@ -1025,7 +1025,7 @@ function module.command(arg)
end
print("");
print("Ensure you have working backups of the above databases before continuing! ");
- if not hi.show_yesno("Continue with the database upgrade? [yN]") then
+ if false == 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