diff options
author | Kim Alvefur <zash@zash.se> | 2025-01-23 22:32:44 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2025-01-23 22:32:44 +0100 |
commit | edfe2fe98cb982bbf5391215b5050d9f67bababa (patch) | |
tree | be323f624af936bc1e0a4e993906586995a5a483 | |
parent | c8134dd9a9dca28cfe3e59f9898018cf2130b0c5 (diff) | |
download | prosody-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.lua | 2 |
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 |