New FileHelp system to create help entries from external files

This commit is contained in:
Griatch 2021-05-08 14:03:50 +02:00
parent 8a7e19db16
commit f5fd398480
10 changed files with 432 additions and 290 deletions

View file

@ -874,7 +874,7 @@ class CmdChannel(COMMAND_DEFAULT_CLASS):
caller,
f"Are you sure you want to delete channel '{channel.key}'"
"(make sure name is correct!)? This will disconnect and "
"remove all users' aliases. {yesno}?",
"remove all users' aliases. {options}?",
_perform_delete,
"Aborted."
)
@ -969,7 +969,7 @@ class CmdChannel(COMMAND_DEFAULT_CLASS):
caller,
f"Are you sure you want to boot user {target.key} from "
f"channel(s) {channames} (make sure name/channels are correct{reasonwarn}). "
"{yesno}?",
"{options}?",
_boot_user,
"Aborted.",
default="Y"
@ -1022,7 +1022,7 @@ class CmdChannel(COMMAND_DEFAULT_CLASS):
caller,
f"Are you sure you want to ban user {target.key} from "
f"channel(s) {channames} (make sure name/channels are correct{reasonwarn}) "
"{yesno}?",
"{options}?",
_ban_user,
"Aborted.",
)